Home › Forums › Theme support › Boston Theme – changing navigation text color
Tagged: Boston Theme, child theme, navigation text color
This topic contains 1 reply, has 2 voices, and was last updated by 7Theme Support 9 years, 7 months ago.
-
AuthorPosts
-
Good morning.
I am having trouble changing the color of the main navigation bar using a child theme of the Boston theme (using WordPress v4.1.1, Boston Theme v1.0).
I set the new color in the theme’s customizations window, and the Preview text directly below the option shows the intended color:
Menu: Appearance > Theme Options > Navigation
Section: Text – Font
Item: FontcolorThis works file with the Boston theme activated, but when I activate the child theme, it changes the color of visited links but not unvisited links.
While the child theme is activated, I see with inspect element that the color I chose is applied via customcss.php (I’m guessing this is where custom settings from the theme are implemented):
Rule: header .main-menu a { color: #D508D4; }
File: [siteurl]/wp-content/themes/boston/7league/css/customcss.phpBut the chosen color is outranked by what seems to be the default setting:
Rule: header .main-menu a { color: #EEE; }
File: [siteurl]/wp-content/themes/boston/style.cssWith the Boston theme activated, the opposite is true, the custom setting outranks the default setting.
The child theme was created using the instructions from the WordPress Child Themes page (http://codex.wordpress.org/Child_Themes). So the 2 files I have in the child directory are style.css and functions.php.
style.css:
/*
Theme Name: Torres Landscape Theme
Description: Created by Diamante Design 2015
Author: 7Theme.net
Author URI: http://www.7theme.net/
Template: boston
Version: 1.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: Torres Landscape Theme
*//* =Theme customization starts here
————————————————————– */functions.php:
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
function enqueue_parent_theme_style(){
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}Can anyone tell me what I’m doing wrong here?
Thank you for your help!
Hi,
sorry, its hard to say without seeing the source code, I think WordPress insert first the customcss.php file as stylesheet and then the stylesheet file from the child theme, so this will overwrite the styles from the customcss.php.
Can you send us the link for the page (info @ 7theme . net ), then we can take a look at it.
-
AuthorPosts
You must be logged in to reply to this topic.