Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #315322

    Hi,

    1.how can i change the title for link in breadcrumb bar?
    2. how to remove “Archive for category:” on this page?

    links and screenshots in Private

    #315524

    Hey!

    Add the following at the very end of your theme / child theme functions.php file:

    add_filter('avf_title_args', 'change_title_for_Archives', 10, 1);
    function change_title_for_archives($args) {
    	if(is_archive()){ 
    		$args['title'] = get_queried_object()->name;
    		$args['heading'] = "h2";
    	}
    
    	if(is_singular('post')){
    		$args['title'] = "Something";
    	}
    	return $args;
    }
    

    Cheers!
    Josue

    #316891

    and how to change the title for the link and remove “Permanent Link: ” from it ?

    • This reply was modified 10 years, 2 months ago by AmarMahallati.
    #316916

    Hi!

    I’m not seeing any “Permanent Link” on the pages but if you want to control the link you can do it this way:

    add_filter('avf_title_args', 'change_title_for_Archives', 10, 1);
    function change_title_for_archives($args) {
    	if(is_archive()){ 
    		$args['title'] = get_queried_object()->name;
    		$args['heading'] = "h2";
                    $args['link'] = "http://google.com";
    	}
    
    	if(is_singular('post')){
    		$args['title'] = "Something";
                    $args['link'] = "http://google.com";
    	}
    	return $args;
    }

    Regards,
    Josue

    #316962
    This reply has been marked as private.
    #316964

    Hi,

    Open functions-enfold.php and look for line 307:

    if(!empty($link)) $title = "<a href='".$link."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".esc_attr( $title )."' $markup>".$title."</a>";
    

    Replace it by this:

    if(!empty($link)) $title = "<a href='".$link."' rel='bookmark' title='".esc_attr( $title )."' $markup>".$title."</a>";
    

    Regards,
    Josue

    #317015

    i did, but nothing changes

    #317042

    Hi,

    It worked on my end, can you please create me an administrator account? post it here as a private reply.

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.