[Resolved] Google fonts subset and archive title prefix

  • Author
    Posts
  • #5562

    quangbahoa
    Participant

    Hi,

    I’m new on Ultra pro from Vantage premium.

    I’m looking for a way to add Google fonts subset to customizer panel and remove archive title prefix like Category:, Tags: , Author:, Date: ... on Ultra pro.

    Thanks

    #5567

    Andrew Misplon
    Keymaster

    Hi quangbahoa

    Thanks for your support.

    Archive Titles

    From Appearance > Customize you can now use Page Template Settings to edit the layout of archive pages. Unfortunately, removing the title prefix isn’t an option. We can however, remove it with a plugin called Code Snippets. Once activated go to Snippets > Add New and name your snippet as you’d like. In this snippet body insert:

    function ultra_archive_title( $title ) {
    	if ( is_category() ) {
    		$title = single_cat_title( '', false );
    	} elseif ( is_tag() ) {
    		$title = single_tag_title( '', false );
    	} elseif ( is_author() ) {
    		$title = '<span class="vcard">' . get_the_author() . '</span>' ;
    	}
    	return $title;
    }
    add_filter( 'get_the_archive_title', 'ultra_archive_title' );

    Select the option to only run on site front end and then click the Save changes and activate button.

    Unfortunately, it isn’t possible to add Customizer subsets to the framework being used. Can you perhaps let me know what needs to be changed and I can advise a Custom CSS snippet perhaps?

    #5568

    quangbahoa
    Participant

    Thanks for reply.

    For archive prefix I can do with CSS or custom function. For fonts subset I can using @import or custom functions. My client with no knowledge. They can’t! So I ask for solutions as features request.

    Anyway, thanks for support.

    #5569

    Andrew Misplon
    Keymaster

    For sure, thanks for your feedback. Appearance > Customize > Page Template Settings should let the user hide the page title on archive pages, unfortunately, filtering it isn’t an option.

    For the font issue, I wish we could improve that but there are currently a few limitations holding us back in this version of the framework.

    If I can help in any other way, please, let me know. Thanks for your feedback and understanding.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Scroll to top