Answers for "getting <title> in wordpress"

PHP
1

wordpress get site title

You are not outputting anything to show. You are only assigning blog name to a variable. You need to echo the content. It should be :

<h1><?php echo get_bloginfo( 'name' ); ?></h1>
Hope this helps :)
Posted by: Guest on March-08-2021
0

how to change title tag of widget in wordpress

function my_custom_widget_title_tag( $params ) {

    $params[0]['before_title'] = '<h4 class="widget-title widgettitle">' ;

    $params[0]['after_title']  = '</h4>' ;

    return $params;

}
add_filter( 'dynamic_sidebar_params' , 'my_custom_widget_title_tag' );
Posted by: Guest on August-29-2021

Code answers related to "getting <title> in wordpress"

Browse Popular Code Answers by Language