Listening to Luisa talk about financial strategy isn't much different than listening to a musician talk about music. Luisa doesn't only love her job, but she loves to make it accessible to business owners. Her whole website was designed around making the complex easier to digest.
Client: Luisa Pastega
Use the page slug as a class
Extract the page slug name in order to use it as a class/id/anything you can think of
<?php $slug = basename(get_permalink()); ?> <div class="<?php echo $slug ?>">Some content</div>
Create a style.php file
If you want to spice up your website and add dinamically some css property, one way to do that is adding creating a file named style.php with this header
<?php header("Content-Type: text/css; charset=utf-8"); //Basics & WordPress Standards $absolute_path = __FILE__; $path_to_file = explode( 'wp-content', $absolute_path ); $path_to_wp = $path_to_file; require_once( $path_to_wp.'/wp-load.php' ); require_once( $path_to_wp.'/wp-includes/functions.php'); $template_uri = get_template_directory_uri(); ?> //your css property