PDidee
Forum Replies Created
-
Figured it out. I created my own template-part-banner and modified template:
<section class="small_banner"> <div class="center-wrap "> <p class="page-banner-heading">Training</p> <div id="banner-search"> <form method="get" class="searchform" action="https://www.mysite.com/"> <fieldset> <input type="text" name="s" class="s" value="Search..." onfocus="if(this.value=='Search...')this.value='';" onblur="if(this.value=='')this.value='Search...';" /> </fieldset> </form> </div><!-- end #banner-search --> <div class="breadcrumbs"><a href="https://www.mysite.com">Home</a> → <span class='breadcrumbs'><a href="https://www.mysite.com/training">Training</a> </span> → <span class='current_crumb'><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></span></div><!-- end .breadcrumbs --> </div><!-- end .center-wrap --> <div class="shadow top"></div> <div class="shadow bottom"></div> <div class="tt-overlay"></div> </section><!-- END content-container -->
Currently my pages are set up as follows:
Event List: Is on a page called “Training” with a shortcode to display the list of events. This is great no changes needed to this page.
Event Single: looks great except for the section right above the page which contains the page title and breadcrumbs. The theme (Sterling) uses a template part to display this. There is a woocommerce option I have tweaked were the page.php detects if the current page is the woocommerce product page and displays an alternative template part. I figure this same logic can be applied to the event single page. I’m just not sure how to write the conditional code since I’m a little shaky on my php coding.
Here is the conditional code that looks for the woocommerce product page and replaces the template part with the alternative “template-part-woocommerce-banner.php”:
// Check for WooCommerce. If true, load WooCommerce custom layout. if ( class_exists( 'woocommerce' ) && ( ( 'true' == is_woocommerce() ) || ( 'true' == is_checkout() ) || ( 'true' == is_cart() ) || ( 'true' == is_account_page() ) ) ) : ?> <section class="small_banner"> <?php get_template_part( 'template-part-woocommerce-banner', 'childtheme' ); ?> </section>
I’m using a child theme as well. So I can replace the modified page.php in the child theme directory. Just need help writing the “else if” code.
Thanks
Pit’s been incorporated into the theme but was a plugin called “Simple Breadcrumb Navigation”
Okay that works for the navbar not highlighting “Blog” but my bread crumbs still show up as “Home->Blog->Event Title”
But now the add new event and events submenus are gone. ??
Forum: Plugins
In reply to: [Back End Instructions] Possible to create a Custom Help Tab?That’s awesome!
Forum: Plugins
In reply to: [MediaElement.js - HTML5 Video & Audio Player] Add multiple video sources?Has anyone found a solution to this? If I strip away the player class the files work but I loose support on IE and the flash fallback.
Forum: Plugins
In reply to: [MediaElement.js - HTML5 Video & Audio Player] Add multiple video sources?Okay so I figured out how to add multiple video sources such as multiple Mp4’s my goal was to have the code target a mobile device. However the the mobile version needs to be listed first. This causes an issue with the desktop version of safari since it will only play the low res 640×480 version. If I reverse the order the high res version plays on safari but nothing plays on the iPhone. I even relabeled the videos like below:
<source src=”file.1280×720.mainprofile.mp4″>
<source src=”file.640×480.baselineprofile.mp4″>Has anyone come up with a solution for this?
Thanks in advance.