Post Category link is same with Page link
You can setup a custom link structure in the Permalink Settings. There is a field for ‘category base’ name.
You can setup a custom link structure in the Permalink Settings. There is a field for ‘category base’ name.
You can change the code in the theme files to do this. Open the file category.php (if this file doesn’t exist, try archive.php) and replace the text you want to change with single_cat_title() Here is the documentation However these changes will be overwritten if you update your theme You can create a child theme or … Read more
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
2 Domains, Same Content, Different Titles?
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”);
You could do something like this to see where it was called from: add_filter(“get_the_archive_title”, function($val) { $backtrace = debug_backtrace(); foreach($backtrace as $level) { if(array_key_exists(“file”, $level) && preg_match(“!that-file\.php$!”, $level[“file”]) && array_key_exists(“function”, $level) && $level[“function”] == “get_the_archive_title” ) { return “works: $val”; } } return “test: $val”; }, 10, 1); You’ll have to adapt the regexp (“that-file.php”) … Read more
If there is only 1 post showing up in your page, you could use the the_title() filter to hide the title. The simplest way would be this: function hide_my_title( $title, $id = null ) { if ( is_single( 2 ) ) { return ”; } return $title; } add_filter( ‘the_title’, ‘hide_my_title’, 10, 2 ); This … Read more
The display of ‘things’ on your blog page is usually dependent on the theme. You can verify this by switching to one of the ‘twenty’ default themes and redisplay the page. If the title appears, then you have verified that the problem is a theme problem. If you verify a problem with the theme, then … Read more
The simplest way to do it is to give the post an empty string as title. This means whenever your title is shown it will not contain anything, and will not output anything, except an empty tag. Furthermore, you can choose not to render that tag at all using an appropriate CSS selector + ::empty. … Read more
This seems like a theme issue. I believe it’s trying to pull the site title or site description and append it after the hyphen. You can also see this issue occur if you hover your browser tabs title or view source and view the title tag. To test this theory you can follow the below … Read more