Change site-tagline for each project individually
-
Hello, I am trying to change the site-tagline, so that it shows the name of the project instead of a fixed tagline that stays the same no matter where I am on the site.
Is this possible?
I am trying to use this javascript that I’ve put in the Custome <head> content section of Custom CSS, but it doesn’t do anything.
<script>
jQuery(document).ready(function($) {
if($('body').hasClass('page-id-614')) {
$('.tagline').text('Mein erster Projekttitel');
}
else if($('body').hasClass('page-id-588')) {
$('.tagline').text('Mein zweiter Projekttitel');
}
});
</script>Is there a way to do that?
Thank you!
-
go to the documentation and go to custom javascript
you need to use the newpageshown event
-
go to the documentation and go to custom javascript
you need to use the newpageshown event
@arminunruh Thank you very much, it works now! I also realized, I used page-id instead of post-id.
-
nice
what u could also do is put text in a row.
then right click the row, click "set html class and id" →
for html class add: "sticky" without ""then in your css:
.sticky{
position: sticky;
top: 0;
}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login