CSS Styling a specific page

That is a URL Query String. It’s still the same page, not a subpage. You can access this in PHP via $_GET and you can use the body_class hook to look for this query string and add a class accordingly. WordPress won’t add classes for query strings, it’s not a normal thing to do. Here’s … Read more

Started getting warning message following host’s PHP upgrade

The issue is this line: if(function_exists(register_setting)) register_setting is not in quotes. Values without quotes are how you refer to constants in PHP, but there’s no constant with that name, because it’s supposed to be ‘register_setting’, with quotes. PHP recognises this mistake, and is interpreting this as if you had included the quotes, but it’s warning … Read more

How would I go about replacing this function in my child theme located in inc/template-tags.php

You can’t replace the function, but you can substitute it: Copy the function to your child theme’s functions file. Rename the function. Modify it as needed. Find the template file that references it, such as header.php, and copy that to your child theme. In your child theme’s new template file replace the reference to the … Read more

Running script based on Category

run only on posts listed under one category I highlighted that “posts” because if so, then the conditional tag you should use is in_category() and not is_category() which is for category archive pages (e.g. example.com/category/foo) — so for example, is_category( 93 ) checks if the current archive page is for the category (with the ID … Read more

Child Theme Based on Toolbox Not Found

You’re missing the Template Name for the parent theme. It should look like this: /* Theme Name: Charlie’s Repair Theme URI: http://wordpress.org/extend/themes/toolbox/ Author: Mike Wills Author URI: http://mikewills.me Template: toolbox Description: Based on the Toolbox theme from Automatic. This site is for Charlie’s Repair Version: 0.1 License: GNU General Public License License URI: license.txt Tags: … Read more

filterable portfolio with wordpress and jquery

When enqueueing scripts in a child theme directory, use get_stylesheet_directory_uri() instead of get_template_directory_uri(). In the case of a child theme, get_template_directory_uri() will return the parent theme’s directory. function enqueue_filterable(){ wp_register_script( ‘filterable’, get_stylesheet_directory_uri() . ‘/js/filterable.js’, array( ‘jquery’ ) ); wp_enqueue_script( ‘filterable’ ); } add_action( ‘wp_enqueue_scripts’, ‘enqueue_filterable’ );