Site logo

Archived topic

Changing Navigation Menu Height Not Taking

7 replies · Started by mavrocreative on February 12, 2020

Viewing posts 1–8 of 8

Hi!

I'm trying to change the menu height and I go to the Customizer, Layout, Primary Navigation and change the Menu Item height to say 20px. I can see the change taking place when I look at the navigation but when I hit Publish, the changes don't take.

Same thing when I try to change the font size in the primary navigation. The change doesn't tak.

I cleared the cache so it's not a caching issue.

Thoughts?

Thank you!

Donna

Hi there,

Are you using a child theme?

If so what happens if you use the parent theme instead?

Let me know :)

Hi Leo,

Thanks for the quick response! Yes...I'm using a child theme. I switched to the parent theme it works.

So how can I use the child theme and have my edits take?

Donna

HI Leo,

The style.css file doesn't have anything in it.

The functions.php has this code (is there something there I need to remove?)

<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:

if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
$uri = get_template_directory_uri() . '/rtl.css';
return $uri;
}
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );

if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'generate-style' ) );
}
endif;
add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );

// END ENQUEUE PARENT ACTION

Perfect! That worked!

Donna

Glad to hear :)

This archived topic is closed to new replies.