Change Sub Menu Background Color

Home Forums SKT Black/White Theme Support Change Sub Menu Background Color

Tagged: 

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #6929
    David Green
    Member
    • Topics: 7
    • Replies: 7
    • Total: 14
    Member since: May 16, 2015

    How do we change the background color on sub-menus?

    #6942
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    Can you show us the website? Would be easier to check and guide you for the same.

    Regards,
    Shri

    #6948
    David Green
    Member
    • Topics: 7
    • Replies: 7
    • Total: 14
    Member since: May 16, 2015

    Sure. It’s reeftechs.com

    #6949
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    Kindly paste this in Appearance>Theme Options>Custom CSS

    .nav ul li ul li a {background-color: #6dcef5;}

    Regards,
    Shri

    #6971
    David Green
    Member
    • Topics: 7
    • Replies: 7
    • Total: 14
    Member since: May 16, 2015

    Thank 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”;}

     

    #6993
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    Custom 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,
    Shri

    #7315
    Triin Tamm
    Member
    • Topics: 0
    • Replies: 6
    • Total: 6
    Member since: May 6, 2015

    Dear,

    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

    http://www.milesproductions.eu

    #7406
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    Hi 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,
    Shri

    #7414
    Triin Tamm
    Member
    • Topics: 0
    • Replies: 6
    • Total: 6
    Member since: May 6, 2015

    Hei 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…

     

    #7456
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    Hi Triin,

    Okay can you write some inline css? If not here is how:
    Kindly visit Appearance>Editor>single.php

    Check <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

    #7462
    Triin Tamm
    Member
    • Topics: 0
    • Replies: 6
    • Total: 6
    Member since: May 6, 2015

    Hei 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(); ?>

    #7467
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    The initial top <div class=”site-main” id=”sitemain”> is here and the rest is in content-single.php

    Regards,

    Shri

    #7522
    Triin Tamm
    Member
    • Topics: 0
    • Replies: 6
    • Total: 6
    Member since: May 6, 2015

    Dear 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

    #7525
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6817
    • Total: 6825
    Member since: June 12, 2013

    You 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

    #7526
    Triin Tamm
    Member
    • Topics: 0
    • Replies: 6
    • Total: 6
    Member since: May 6, 2015

    Hei 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

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.