Dear Marius,
(Question is at the bottom... sorry for the long sorry...)
thanks for the information, I had a look at the article but think that we misunderstood:
I don't want to hide the text-element but make it a fixed element that is on top of every other element, just like the page title and navigation.
I made a workaround using CUSTOM HTML at top of the page and CUSTOM CSS like this:
For every project I made a text:
<a class="pt qat" href="http://sven-rose.com/" data-type="category" data-id="1" data-catid="" data-title="Sven Rose">
<div class="__Default_head">
<span>Qatalog</span>
</div>
</a>
So i've got like 12 of these rendering on op of each other. For every project page I then hide the unwanted classes with CSS like this:
body.type-project.id-467 .pt.ba,
body.type-project.id-467 .pt.ma,
body.type-project.id-467 .pt.frei,
body.type-project.id-467 .pt.spy,
body.type-project.id-467 .pt.bau,
body.type-project.id-467 .pt.ana,
body.type-project.id-467 .pt.menu,
body.type-project.id-467 .pt.ost,
body.type-project.id-467 .pt.blc,
body.type-project.id-467 .pt.bon,
body.type-project.id-467 .pt.sfk,
body.type-project.id-467 .pt.waba {
display:none;
}
This works ok for now, BUT: every once in a while, when a user navigates through the page, the texts that should hide blink for a fraction of a second when the page is about to be rendered.
This is why I had another look at frontend.php and I had the following idea:
I would like to change it, that after the part, where laytheme makes the page title, another text is made, that returns the title of the current page, so that this workaround is executed kind of in an automated fashion.
I know about get_the_title()
and managed to do what I want, but the problem with this method is: the page title is only rendered after i REFRESH the page once it's loaded.
My question is: How can I get this info from .php using the laytheme? (See attached image)
Thank you!
Best,
Sven