How can I change tagline in title tag “Just another wordpress site”?
You’ll find the tag line in your admin panel under Settings > General > Tagline There you can change it to whatever you like.
You’ll find the tag line in your admin panel under Settings > General > Tagline There you can change it to whatever you like.
ok found out – added this to my content-page.php maybe not nice, but works for now… <?php $pieces = explode(‘:’, the_title( ”, ”, false ), 2 ); if (2 == count($pieces)) : ?> <h1 class=”entry-title”><span><span style=”font-size: 24px;”><?php print $pieces[0]; ?>: </span><span><?php print $pieces[1]; ?></span></span></h1> <?php else : ?> <h1 class=”entry-title”><?php the_title(); ?></h1> <?php endif; ?>
No, title tags are the way you set your default titles when bookmarking. It’s entirely up to the user whether they want to change it from that default. Sidenote: This question is also more appropriate for StackOverflow as it doesn’t directly relate to WordPress (WordPress Answers is solely for WordPress-related questions). 🙂
In your page template you can use the conditional statement is_category($category) to determine if the header should show: if (!is_category(‘fun’)){ the_title(); } … OR … Better: You can create a category template and not include the_title() in that template file. This is a cleaner way to ensure only that one category page leaves out the … Read more
the_title() prints/retrieve the title while get_the_title() retrieve the title. So your code should be something like this. <div class=”case-breaking__content”> <p> <?php $out = strlen(get_the_title()) > 50 ? substr(get_the_title(),0,50).”…” : get_the_title(); echo $out; ?> </p> </div> Note you can use the_title() but it is not recommended here to keep the code clean. <div class=”case-breaking__content”> <p> <?php … Read more
Try below code. global $post; echo esc_html( get_the_title($post->ID) );
Its documented.. heres a fix
Using get_the_title() will work for you: <h1><?php echo get_the_title(); ?></h1><span>YOUR CUSTOM CONTENT</span>
If you can pull the XML feed before the Title gets set then you could easily use information from the XML feed (and thus the H1) in the title. I guess you need to ask yourself these questions: Can I pull the XML before the title is processed? When creating the H1 are there any … Read more
The easy way is to look at the URLs of the posts (or the IDs) and determine what ones you’d like to delete. Then go to the all posts page and hover over the title of the post you’d like to delete, then click the red trash button.