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”);

Page Title Dependant On Input?

Your best bet may be to use existing WordPress filters to modify your page title. For your needs, the the_title() filter would probably be your best best. Here’s a link to a pretty good tutorial on using it.

Limit title length

It’s because you’re not using the filter correctly. The the_title filter passes the title to be filtered as the $title argument, but you’re overwriting it with this code: global $post; $id = ($post->ID); $title = get_post( $id )->post_title; That code’s completely unnecessary because the title is already available in your function: function max_title_length( $title ) … Read more