How to Implement Category.php page title in wordpress custom template?

Your code is fine, the only problem here is a syntax error. Always remember to remove any spaces between the opening and closing tags – otherwise your code will fail. Example: <h2> <a href=”#” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”> <?php the_title(); ?> </a> </h2> Make sure to read the WordPress Codex about the_title_attribute() … Read more

How to modify title tag in a plugin?

What I actually ended up doing was to use filter document_title_parts. https://developer.wordpress.org/reference/hooks/document_title_parts/ I just unshifted a value to the array. I don’t think the documentation actually is very clear about that. And this method still don’t work with Yoast SEO installed.

Setting Page Title Yoast

It sounds like you’re trying to modify document’s <title> tag as opposed to the post titles typically wrapped in <h1>/<h2> tags, which you’ve already accomplished. If the theme you’re using implements titles in the WordPress 4.4+ manner, you can use the document_title_parts filter: /** * document_title_parts * * Filters the parts of the document title. … Read more

What change does this code need to include title of parent?

You can get all parent post id by get_post_ancestors function. add_filter( ‘document_title_parts’, ‘change_wp_title’, 20, 1 ); function change_wp_title( $title ) { global $post, $paged; $grappig = $title; // 404 if ( is_404() ) { $title[‘title’] = ‘file not available’; } elseif ( is_singular( ‘schedule’ ) ) { // get all parent post’s id $parents = … Read more

Blog Post Title apearing twice

You need to remove the archive description automitically generated by genesis. Look in your archive page template and remove(*) something like do_action(‘before_archive_posts’); (*) You can update your question with your archive template code. As I don’t use this theme, I don’t know the right name, and more details you could remove this action easily in … Read more

Change font and Colours in Menus

Goto your dashboard > appearance > customize there you can find some options to change button color,font size etc. To target your ul in menu you need to use below class: ul.nav-menu To target the li a of your menu use below class : .menu ul.nav-menu li a To target you ul under the parent … Read more

Custom title when using shortcode

This code solved my problem. function digitSix() { //some codes here; $var = “this is custom title”; add_filter( ‘pre_get_document_title’, function( $var ) use ( $var ) { return $var; }, 20 ); return $someContent; } add_shortcode(“i_digit6”, “digitSix”);