Archived topic
elements header doesn´t appear
11 replies · Started by Heinrich on August 19, 2020
hi team,
i have an elements header, the display rules are "all posts" and "one page". the header appears on the page, but not on all posts? i can`t find how to fix it.
Hi there,
do you have any other header elements that have a location of Posts?
If so you will need to change the rules or use Exclude rules so they do not conflict.
If thats not the issue can you direct me to a post where is not being displayed.
hi david,
here is the post link:
https://www.grillschule.at/richtig-grillen-mit-holzkohle/
Here is the site which is fine:
https://www.grillschule.at/uebernachtungsmoeglichkeiten/
I think the display rules are fine because I excluded the posts from the standard layout.
The header element contains the News Ticker ? Right.
I can see that on the post and the page
no, the news ticker is a separate element, display rules are „entire site“
here is a screenshot from my elements-list: https://drive.google.com/file/d/1rCB2vihTts0qtJJ6dR3xOxfAblnMRq74/view?usp=sharing
hi david,
i disabled the news-ticker and now the header appears. what is your advice to combine this two headers in one? or should it work side by side?
You could add the ticker to the after_header hook in a Hook Element.
This will allow you to display a separate Header Element.
is there a shortcode to execute in the hook? or do i have to format all with html?
Is the ticker added using a shortcode?
If so and you want to add a wrapper around it you could do this:
<div class="ticker-wrapper">
<div class="ticker-inner">
<!-- add your ticker code her e-->
</div>
</div>
Then give it some CSS:
.ticker-wrapper {
padding: 10px;
background-color: #ff0000;
}
tks a lot
You're welcome