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

How to disable site title and description when custom header is uploaded on the customizer?

<div class=”table-cell”> <?php if ( has_custom_header() ) : ?> <?php the_custom_header_markup() ?> <?php else : ?> <h1 class=”blog-title”><?php bloginfo(‘name’); ?></h1> <h5 class=”blog-tagline”><?php bloginfo(‘description’); ?></h5> <div class=”image-title”><img src=”https://wordpress.stackexchange.com/questions/248807/<?php bloginfo(“template_url’); ?>/images/image.png” /></div> <?php endif ?> </div>

How to disable Publish button on Edit post if post title exists

You can achieve this by adding post.php to your conditional check before enqueuing your script. NOTE: This might effectively disable the ability to update posts. add_action(‘admin_footer’, function() { global $pagenow; if ( !$pagenow || !in_array($pagenow, array( ‘post-new.php’, ‘post.php’ )) ) return; // only enqueue when writing/editing posts ?> <script> jQuery(document).ready(function($){ $(document).on(“change”, “#titlediv #title”, function(e){ var … 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

“Page Array” displaying in title bar on Front Page

There are many ways to set page title in wordpress. 1) In admin area go to settings >> General Settings. Set “Site Title” field and “Tagline” field values. 2) You can set your page title using wp_title() function to set the title of your page. Using this function you can change your page title based … Read more

Error [Column ‘post_title’ cannot be null] when title is disabled for Custom post type

I would suggest the following improvements for better code readability and to make it easier to maintain later. Assuming you’ve removed title from your custom post type using the following function : remove_post_type_support( ‘slider’, ‘title’ ) Now if you use name=”post_title” instead of name=”wys_slider_title” WordPress will still use it and update the post title accordingly. … Read more