menu colours
-
I am using virtue theme and would like to change menu background colour.
How can I do it?
-
Do not edit the theme itself. First create a child theme for your changes. Or install a custom CSS plugin.
Which menu? can you post a link?
Kadence Themes
I am talking about the main menu
http://www.vasopanagi.com/template1/I have created a child theme called virtue-child but when I go to appearnace/themes, I get the message “The parent theme is missing. Please install the “Virtue” parent theme.”
in your child theme .css file, make sure you specify the template name as parent theme name
make sure you specify the template name as parent theme name
You actually need to use the parent theme’s folder name – not the theme name. And please be aware that this is case sensitive.
the templates that I have are: home and mobile_home
I have now created a directory called home-child and get the message “The parent theme is missing. Please install the “home” parent theme.”thanks
VasoDo you have a folder in wp-content/themes called “virtue”?
yes
What is in the comment section of your child theme’s style.css file?
/*
Theme Name: home-child
Theme URI: http://kadencethemes.com/product/virtue-free-theme/
Description: Virtue Child Theme
Author: VP
Author URI: http://vasopanagi.com
Template: home
Version: 2.1.7
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: virtue-child
*//* =Theme customization starts here
————————————————————– */in which directory should I place this?
Change:
Template: hometo:
Template: virtueYES! It works!
A million thanksWhat is the difference of adding the css in this file instead of advanced options/custom css?
A child theme gives you greater flexibility when it comes to modifying the theme generally.
Got it!
If I want to add a border line below the main menu, would the following css work?
#mainmenu {
border-bottom: thick dotted #ff0000
}
The topic ‘menu colours’ is closed to new replies.
