!is_page_template not working with && operator

You need to include is_page() in your if statement : <?php if ( function_exists(‘yoast_breadcrumb’) && is_page() && !is_page_template( ‘single-course.php’ ) ) { yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); } else { ?> <p id=”breadcrumbs”><span xmlns:v=”http://rdf.data-vocabulary.org/#”><span typeof=”v:Breadcrumb”><a href=”https://wordpress.stackexchange.com/questions/187868/<?php echo site_url(); ?>” rel=”v:url” property=”v:title”>Home</a> » <span rel=”v:child” typeof=”v:Breadcrumb”><a href=”<?php echo site_url(‘/tracks’); ?>” rel=”v:url” property=”v:title”>Tracks</a> » <strong class=”breadcrumb_last”><?php echo get_the_title(); ?></strong></span></span></span></p> <?php … Read more

Best Practice – Customise a WooCommerce+WordPress Templates

The best practice for editing a Woocommerce theme is similar to WordPress as you should use Hooks and Filters when possible. https://docs.woothemes.com/document/introduction-to-hooks-actions-and-filters/ But if you do need to edit a template Woocommerce outlines this on their website as well: https://docs.woothemes.com/document/template-structure/ You just need to make the template upgrade safe by copying the template to your … Read more

different style sheet for just one page template

The preferred way is to use add_action( ‘wp_enqueue_scripts’, ‘themeslug_enqueue_style’ ); within your child theme functions.php file or directly in your referral.php template page. Either way, it’s by using add_action and not by echoing into the <link> tag. Registering your style is also a recommended practice. The one benefit I would see in your case is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)