Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rbird

    (@rbird)

    Found the setting, right in front of my under “Featured Videos” on the Media Settings panel.

    Simply change YouTube wmode to “transparent” (or “opaque”) and this will resolve the layering issue in certain browsers.

    Here’s how I got FVP to work in Headway v3.5.x

    You will need to edit the file “content-display.php” in the Headway Theme directory. Find it here:

    /wp-content/themes/headway/library/blocks/content/content-display.php

    You’re going to be looking for the code block that begins with “function display_thumbnail” – In my case that was on line 735.

    Now a bit further down you will see the output code like this:

    echo '
    	<a href="' . get_permalink() . '" class="post-thumbnail post-thumbnail-' . $position . '">
    		<img src="' . esc_url($thumbnail_url) . '" alt="' . get_the_title() . '" width="' . $thumbnail_width . '" height="' . $thumbnail_height . '" />
    	</a>
    ';

    Just before that block, initiate this test loop:

    if( has_post_video() ) {
    		the_post_video();
    		} else {

    And, then, immediately after the “echo” block, close the loop:

    }

    That’s it! Works like a charm. Here’s the entire block as I edited it in the content display PHP:

    // RDB - Enables Featured Video Plus plugin in Headway
    // See http://ww.wp.xz.cn/support/topic/compatbility-with-headway-framework
    		if( has_post_video() ) {
    		the_post_video();
    		} else {
    // The end of test loop initialization
    
    echo '
    	<a href="' . get_permalink() . '" class="post-thumbnail post-thumbnail-' . $position . '">
    		<img src="' . esc_url($thumbnail_url) . '" alt="' . get_the_title() . '" width="' . $thumbnail_width . '" height="' . $thumbnail_height . '" />
    	</a>
    ';
    
    // closing the Featured Video Plus loop
    }
    // 	That's it

    For everyone looking to do this, I achieved the above “siblings and children” result with these settings:

    • Hierarchy: Only related sub-items
    • Starting depth: 1
    • Unlimited depth
    • Display all
    • Filter: None
    • Include parents: unchecked
    • Post related parents: unchecked
Viewing 3 replies - 1 through 3 (of 3 total)