Automatically add words if duplicate post titles

Please give this a shot. I didn’t test it, so let me know if it has any errors. Basically, it will check the title before saving and run a loop checking to see if it can get a post by that title. If it can, it will add a new suffix and keep trying. As … Read more

How to remove “Category : …”

That title is coming from archive.php file of TwentySixteen theme. You can find a <header> code section in that file. What you can do, simply copy the archive.php file as category.php and then remove the following code section from category.php file: <header class=”page-header”> <?php the_archive_title( ‘<h1 class=”page-title”>’, ‘</h1>’ ); the_archive_description( ‘<div class=”taxonomy-description”>’, ‘</div>’ ); ?> … Read more

Woocommerce: How to remove page title from storefront theme homepage

Try this: add_action( ‘wp’, ‘storefront_remove_title_from_home_homepage_template’ ); function storefront_remove_title_from_home_homepage_template() { remove_action( ‘storefront_homepage’, ‘storefront_homepage_header’, 10 ); } or if you use default template add_action( ‘wp’, ‘_storefront_remove_title_from_home_default_template’ ); function storefront_remove_title_from_home_default_template() { if ( is_front_page() ) remove_action( ‘storefront_page’, ‘storefront_page_header’, 10 ); }

How to edit title on Edit post pages?

Add this code instead on your functions.php, this will change the post and product title to the post or product that is being edit: add_filter(‘admin_title’, ‘my_admin_title’, 10, 2); function my_admin_title($admin_title, $title) { global $post, $action; if ( isset($post->post_title) and $action == ‘edit’ ){ return ‘Edit < ‘.$post->post_title.’ – ‘.get_bloginfo(‘name’); } else { return $title .’ … Read more

Disable title block on edit screen for a custom post type

I initially didn’t believe this is possible officially at the moment, the post title is always included: https://github.com/WordPress/gutenberg/blob/a6a0d3d47d24b83a58db7130fa82133428067326/packages/edit-post/src/components/visual-editor/index.js#L77 <div className=”edit-post-visual-editor__post-title-wrapper”> <PostTitle /> </div> The only exception at the moment is if a block template is being edited. In particular, this isn’t a block. There is a post title block but it’s only used in full … Read more

An extra ‘ is displayed in the title

Those look like smart apostrophes to me. They have a curve on theme. Try: <title><?php wp_title(‘ | ‘, ‘echo’, ‘right’); ?> – <?php bloginfo(‘name’); ?></title> Otherwise post what you have around that php section too.

Lose “Blog Archive” from page title

I just realized that you’re talking about the browser “title” at the top; that wasn’t clear from your original post Go into your header.php and at the top look for this line <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?> – <?php bloginfo(‘description’); ?> … Read more

How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)

I’m almost sure there is no way to do that (server side) without hacking core files, bu luckly i know a little jQuery and i’ve come up with this hackish function that does the job just fine: function widget_logic_hack(){ global $pagenow; if ($pagenow == ‘widgets.php’){ ?> <script> function hack_logic(){ jQuery(‘input[id$=”widget_logic”]’).each(function() { if (jQuery(this).val().length === 0){}else{ … Read more