Home › Forums › SKT Black/White Theme Support › Change Sub Menu Background Color
- This topic has 20 replies, 5 voices, and was last updated 5 years, 5 months ago by Sonl Sinha.
-
AuthorPosts
-
May 18, 2015 at 4:46 pm #6929
How do we change the background color on sub-menus?
May 19, 2015 at 7:59 am #6942Can you show us the website? Would be easier to check and guide you for the same.
Regards,
ShriMay 19, 2015 at 10:07 am #6948Sure. It’s reeftechs.com
May 19, 2015 at 11:12 am #6949Kindly paste this in Appearance>Theme Options>Custom CSS
.nav ul li ul li a {background-color: #6dcef5;}
Regards,
ShriMay 19, 2015 at 8:40 pm #6971Thank you. It looks like it works.
So let me see if I understand the Custom CSS box…
Anything that I put into the Custom CSS box will override the corresponding css? Is this only within style.css, or does it cover all the .css files?
Also, if I put something into the box, is it better to put the entire line with my change as opposed to just my change?
Example: h1 {font-size: “32”; line-height: “1.1”; color: “333”}
instead of: h1 {line height: “1.1”;}
May 20, 2015 at 10:42 am #6993Custom CSS overrides all the CSS. But in mobile the navigation part of the css is different so it won’t cause a problem. You can do trial and error as to which works for you.
Regards,
ShriMay 29, 2015 at 5:42 pm #7315Dear,
I would like to change the background colour only on my posts page to white instead of black. Could you guide me where to do that. Thank you
Triin
www.milesproductions.eu
June 1, 2015 at 10:48 am #7406Hi Triin,
Do you mean blog page? Can you show us the blog page directly? Did you try to upload a featured image on the blog page to see if it replaces the background?
Regards,
ShriJune 1, 2015 at 1:55 pm #7414Hei Shri,
The blog pages are the following for example: http://miles.ee/2015/01/proov/
I would like this to look like its in your SKT white theme: http://milesthorn.eu/2015/06/test/
When I upload an image into this post, it will be not displayed as background but it will be the content of this post…
June 2, 2015 at 6:45 am #7456Hi Triin,
Okay can you write some inline css? If not here is how:
Kindly visit Appearance>Editor>single.phpCheck <div class=”main-container”> Make it like this: <div class=”main-container” style=”background-color:#ffffff”>
And then scroll down for title:
<h1 class=”entry-title”> Make it like this: style=”color:#000000;”>
Let us know if you couldn’t do it. We will do it for you.
Regards,
Shri
June 2, 2015 at 8:52 am #7462Hei Shri,
Thanks for your advice. Where should i put it exactly? Maybe it it some other file than single.php? This is what I have at the moment in single.php file:
<?php
/**
* The Template for displaying all single posts.
*
* @package SKT Black
*/
get_header(); ?>
<div class=”content-area”>
<div class=”middle-align content_sidebar”>
<div class=”site-main” id=”sitemain”>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, ‘single’ ); ?>
<?php skt_black_content_nav( ‘nav-below’ ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || ‘0’ != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
</div>
<?php get_sidebar();?>
<div class=”clear”></div>
</div>
</div>
<?php get_footer(); ?>
June 2, 2015 at 11:22 am #7467The initial top <div class=”site-main” id=”sitemain”> is here and the rest is in content-single.php
Regards,
Shri
June 3, 2015 at 11:59 am #7522Dear Shri,
Changing the background colour work now, but the advice how to change the title is not working. <h1 class=”entry-title”> Make it like this: style=”color:#000000;”>
I have found the h1 class entry-title in several files and added this style=”color:#000000;” there, but no change in post title colour. it remains white… any suggestions where to change it actually to black with out changing the section font colour? Thanks in advance,
Triin
June 3, 2015 at 12:19 pm #7525You have added double quotes. So you have added like this: style=””color: #000000;””>
This is wrong. Just have single inverted commas like this: style=”color: #000000;”>
Should work just fine.
Regards,
Shri
June 3, 2015 at 12:28 pm #7526Hei Shri,
I have put it that way:
<h1 class=”entry-title” style=”color:#000000;”><?php the_title(); ?></h1>
should i do it differently?
Greetins,
Triin
-
AuthorPosts
- You must be logged in to reply to this topic.