Forum Replies Created
-
AuthorPosts
-
jlknauffMember
Hi Victor,
I had tried that, but no dice...your article was where I started. I ended up modifying the CSS to disable the drop downs.
May 9, 2017 at 9:42 am in reply to: How to make content in front-page-1 visible w/o scrolling? #206182jlknauffMemberRight, but I don't want to remove it. I just want the content to display in front-page-1 without scrolling. I have it working that way on another site, but I can't identify what i did differently.
jlknauffMemberSolved it. Had to add position: relative to the containing div.
jlknauffMemberI didn't say to make it 0px. I said to delete that line entirely.
jlknauffMemberWhat's your URL?
jlknauffMemberIn fact, just delete:
width: 960px;
and you should be fine.
jlknauffMember.site-header .widget-area is too wide. Shrink it down and it will move right up.
jlknauffMemberWhen I use
if ( is_page( 'antitrust-trade-regulation' ) ) { echo '<div class="practice-area-people">'; $custom_field = genesis_get_custom_field('antitrust-trade-regulation-people'); echo do_shortcode( $custom_field ); echo '</div>'; }
it returns nothing. 🙁
I've also tried:
echo do_shortcode( get_post_meta( 223, $key = 'antitrust-trade-regulation-people', $single = true ) );
which also returns no results.
jlknauffMemberHere's the odd thing...
I'm using a shortcode that I know works for testing. (CF7)
This simply prints the shortcode on the screen:
$custom_field = genesis_custom_field('antitrust-trade-regulation-people'); echo do_shortcode( $custom_field );
However, this outputs the results:
$custom_field = genesis_custom_field('antitrust-trade-regulation-people'); echo do_shortcode( '[contact-form-7 id="1667" title="Contact form 1"]' );
Does that make any sense?
jlknauffMemberHey Victor, that's one of the things I've been trying, but no dice.
jlknauffMemberBrad, nope...I've tried using do_shortcode as well with no luck. Even modified to use your example with no success.
function practice_area_people() { if ( is_page( 'antitrust-trade-regulation' ) ) { echo '<div class="practice-area-people">'; $custom_field = genesis_custom_field('antitrust-trade-regulation-people'); if ( $custom_field ) { echo do_shortcode( $custom_field ); } echo '</div>'; } } add_action( 'genesis_before_content', 'practice_area_people' );
jlknauffMemberHey Victor.
It was started using Showcase as a foundation.
Here is what I'm talking about. I'm trying to put it right after the post title, where you see the red X.
jlknauffMemberNo, I was incorrect...that doesn't appear to be the issue.
jlknauffMemberI think I just found what's going on...the theme has the default actions removed and re-added in different orders.
jlknauffMemberThat's still sticking it right above the content, not the page header. (http://bit.ly/2k5dKZj)
jlknauffMemberWell, I came up with a solution. I simply set the max-height using the viewport width.
jlknauffMemberHmmm...I tried that but it's not doing anything different.
jlknauffMemberShoot...I fixed that yesterday but forgot to update my post here. 😉
I do have another problem though...I can't seem to get the div that wraps the video to stop at the bottom of the screen. Any idea how to accomplish that?
jlknauffMemberDelete
.genesis-nav-menu li.right { display: none; }
But it's going to mess up your layout.
jlknauffMemberTry a plugin called Genesis Simple Hooks. You won't need to mess with any coding.
-
AuthorPosts