Before you ask please READ THIS

Hi! Elementor custom headers & footers.issues

in Rife Posts: 37
Hi Air

Elementor custom headers & footers.issues

Note: I had duplicated the site into my own server
to facilitate the trouble shooting.


Here's what happened,

Rife Header & Menu suddenly appeared on the front page of the site.

If I disable the Rife Theme Header, then the front page is ok, but all
And for all internal page , the Elementor custom headers is gone.

Note that the header for front page was designed in the sense that it is
under the 2nd section of the page below a Rev Slider Section


I had created a account and email to you for you just in case you need it

Also, here's a short video to elaborate the issues.
http://screencast-o-matic.com/watch/cFXvibrZ0O

Thanks again

Jason S

Comments

  • AirAir
    Posts: 10,970
    Hey Jason :-)

    Sorry to hear that you face this issue, it must be stressful. However, let's get into it.

    So I see that your header has "display conditions" set to be displayed on every page except front-page because there you are adding it as the template.

    1. Was this set like this before and it worked fine?

    If yes, then I suspect something had to change on Elementor side, as I have not changed anything in that matter.

    However, by logic, if you excluded it(header) form displaying on front-page, and then added it as a template, Elementor probably can not know about this beforehand, and will tell theme to display normal header. So there is the possibility that it was some kind of issue on Elementor side, that they have corrected now.

    I will try to investigate this on your site using built-in WP files editor, but if you could send me FTP access by private message or e-mail it will be much faster.

    With kind regards.
  • AirAir
    Posts: 10,970
    You can use such CSS to hide theme header for now:
    body.home #header{
        display: none !important;
    }
  • AirAir
    Posts: 10,970
    Yes, it seems like I have said before, as since Elementor Pro 2.2.0 they have messed around with "template display conditions" -> https://elementor.com/pro/changelog/?utm_source=wp-plugins&utm_campaign=pro&utm_medium=wp-dash

    In your place, I would ask them about this particular situation.

    You can also try to roll back to previous versions of Elementor Pro(before 2.2.0) and check if the issue happens there as well.

    I will think about adding some kind of WordPress filter, that you could add to the child theme, to tell the theme that on this page theme header shouldn't be displayed.

    I will also check if I can get more info about elementor header being excluded on this page from code.

    With kind regards.
  • AirAir
    Posts: 10,970
    Ha, it seems I don't have to add any new filters, as they are already in place ;-)

    Add such code to your child theme functions.php:
    add_filter('a13_options_header_switch', function($value){
        //if front page, disable theme header
        if(is_front_page()){
           return 'off';
        }
        
        //otherwise return value from settings
        return $value;
    });
    No need for custom CSS, and it is a much better solution.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion