This topic has 3 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #67953
     fikish
    Participant

    Hi all… first time poster!

    Is there a way to ensure all posts use the “alternate color” style rather than main style in KLEO?
    Not the page that lists posts but the posts themselves!

    Any help much appreciated!

    #68024
     sharmstr
    Moderator

    There is, but I wouldnt suggest it because it involves custom copies of Kleo files that will certainly change in the future. You’ll have to constantly keep track of code changes. Trust me, this is a pain.

    What’s the reasoning? Perhaps custom css would work better.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #68086
     fikish
    Participant

    Thanks sharmstr
    I use my main theme all through my front page and other pages, it’s a dark theme. When I got articles (aka blog) it looked better with my lighter pre-set alternate theme, light background, font colors etc but I don’t want to switch main-style and alternate-style to accomodate this now. My site is riddled with main-style/alternate-style rows so it’s a big effort going through the site and changing every single one around manually now to accommodate for a lighter look in the blog.

    Yes I believe my only option is to manually css it up although I’m not sure how/what encapsulates all the post pages themselves.

    #68190
     sharmstr
    Moderator

    Try this. Copy /page-parts/general-before-wrap.php and /page-parts/posts-social-share.php to your child theme. In general-before-wrap, change this

    COPY CODE
    
    <section class="container-wrap main-color">
    
    COPY CODE
    
    if (is_single()) {
        <section class="container-wrap alternate-color">
        } else {
        <section class="container-wrap main-color">
    }
    

    In posts-social-share.php change main-color to alternate-color.

    In the long run, you’ll be better off going back through your pages and changing the row styles.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?