This topic has 4 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #157437
     Strothi
    Participant

    Hey guys,

    I recently changed some menu settings to implement a header image on some of my pages. It works perfectly for my jobs sections for example, as seen here: https://fslci.org/jobs/ This is a normal page with the jobs shortcode providing content.

    Now, I used the exact same setting for the blog / news section, and while the image appears, the transparent background won’t, event though the settings are the same. You can see the difference here: https://fslci.org/news/ This is obviously the blog page, so this might affect the behavior, any idea how to make it still work?

    Now, I also tried to implement an image for my events section, but here nothing happens at all, as you can see here: https://fslci.org/events/ This is a page where the calendar plugin uses its own page template. Here I adjusted the template by inserting all the relevant kleo page elements into the code, except for the content loop. But both calls that should affect the header (<?php get_template_part(‘page-parts/general-title-section’); ?> and <?php get_template_part(‘page-parts/general-before-wrap’); ?>) are part of the template. So I don’t understand why it’s not working.

    Any idea would be highly welcome 🙂

    Thanks in advance 🙂

    #157543
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #157788
     Radu
    Moderator

    Hi,

    I think there it’s a bug with blog page, I will add this to buglist and I will let you know when we gen into this.

    Cheers
    R.

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

    Ok, thanks @radu. Any idea why it’s also not working on the events page?

    #158107
     Radu
    Moderator

    Hi,

    I think it’s same or similar issue on that page,

    For the events page you can use this function

    COPY CODE
    
    add_action('kleo_before_main', 'sq7rdu_show_full_width_image_before_content');
    function sq7rdu_show_full_width_image_before_content()
    {
        global $post;
        //print_r($post);
        $post_name = $post->post_name;
        
        if ($post_name == 'events') {
    
                echo '<div class="fullwidth-image-before-content">';
                echo the_post_thumbnail('full');
                echo '</div>';
        }
    }
    
    

    Then just add a featured image to that page with slug events and it should be displayed before breadcrumbs

    NOTE : Child theme needs to be installed and activated.
    The function needs to be pasted in wp-content/themes/kleo-child/functions.php

    Let me know
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?