condition for specific pages

The easiest way to do it would be: if ( is_category (‘4’) ) { echo ‘<a class=”btn” href=””>Enquire</a>’; } else { echo ‘<a class=”btn” href=””>Calendly link</a>’; } Obviously you would change “4” to whatever the specific category number is. Also, the WordPress template hierarchy could be helpful if you have add’l changes: https://developer.wordpress.org/themes/basics/template-hierarchy/#category If you … Read more

duplicating page templates

When you duplicated the template, I assume that you gave the template file a new file name, and placed it in the same directory as the source. And that you changed the “Template Name” in the duplicated file. And then made changes to the new template file to change the code on the button to … Read more

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