Highlight the links without using dropdown

SOLUTION I found it by using the <?php wp_list_pages( $args ); ?> with customizing the args to display only selected children by id. $args = array ( ‘title_li’ => ”, ‘child_of’ => $post->ID, ‘include’ => 47 ) <h4> <?php wp_list_pages( $args ); ?> </h4> and setting the css to target the current and its parent … Read more

How to make home widgets appear horizontally

Use CSS3 flexbox to control layout of widgets. First, wrap widget divisions in a container division <div class=”widgets-container”>. Add a unique class to each widget division ( in our example: widget-1, widget-2, and widget-3 ). Example code: <div class=”widgets-container”> <div class=”widget-1″> <!– widget-1 code below –> <h2>Widget 1</h2> </div> <div class=”widget-2″> <!– widget 2 code … Read more

Child theme not importing parent styles

If I open syyle.css from original theme I see */ /* Themely is based off of Understrap which uses the Underscores starter theme merged with the Bootstrap Framework. The default styles can be found in /css/theme.css and /css.theme.min.css. The styles loaded when I enqueued theme.css ad theme.min.css files. My functions.php file now <?php add_action( ‘wp_enqueue_scripts’, … Read more

Proper Way to Load stylesheet on Condition

You’ll need to put the if statement around the line that enqueues in the first place. // enqueue styles for child theme function wowdental_enqueue_styles() { // enqueue parent styles wp_enqueue_style(‘Divi’, get_template_directory_uri() .’/style.css’, get_the_time() ); // Flip3d css // flip3d only on home page if( is_home() ) { wp_enqueue_style( ‘flip’, get_stylesheet_directory_uri() . ‘/css/flip.css’, get_the_time() ); } … Read more

How to access theme fonts using custom CSS style? [closed]

The theme will likely only load a set of specific fonts, or will have options in the back-end to add extra fonts. Your problem is that Cinzel is not being loaded, if you insert the code below (preferably in to the <head>) you should find you can then utilise the font. <link href=”https://fonts.googleapis.com/css?family=Cinzel:400,700″ rel=”stylesheet”>

Custom CSS is not working?

There’s no et_pb_row_2 classes being used on that page only et_pb_row_1. Same thing applies to the class et_pb_section_2.

Theme JS is available but theme CSS isn’t

It seems to me best to separate styles, from scripts and other assets. This worked: function my_theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_parent_theme_file_uri() . ‘style.css’ ); } add_action( ‘my_theme_enqueue_styles’, ‘wp_enqueue_styles’ ); function my_theme_enqueue_assets() { wp_enqueue_script( ‘behavior’, get_theme_file_uri( ‘behavior.js’ ), array(), null, true ); } add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_assets’ );