Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1207738

    Hello, how can I insert page number in h1 for page > 2 in tag page?
    Is it possibile to use a shortcode?

    #1208145

    Hey Claudia,

    Please add following code to bottom of Functions.php file in Appearance > Editor

    function av_the_id(){
    	if(is_tag()){
    		echo "<h2>". get_the_ID() ."</h2>";		
    	}else{
    		echo "<h1>". get_the_ID() ."</h1>";
    	}
    }
    add_shortcode( 'the_id', 'av_the_id' );

    Then use [the_id] shortcode to display the ID :)

    Best regards,
    Yigit

    #1208607

    Thanks for your reply but I need to add the page number in case of multipage not the id of the page. Is it possibile in the same way?

    #1209091

    I solved creating a new shortcode, thanks for your hint

    #1209167

    Hi Travelwiththewind,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great weekend!

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Tag page – add page number in h1’ is closed to new replies.