Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1395100

    Hi,

    How to remove the shortlink in header?

    View post on imgur.com

    #1395132

    Hey yundian,
    Thanks for your question, this seems to be added by your plugin All in One SEO Pack
    Enfold_Support_174.jpeg
    Please disable this plugin and check again.
    I’m not sure which setting in the plugin controls this so try checking all of the settings until you find it.

    Best regards,
    Mike

    #1395272

    All website have the shortlink, not a plugin problem

    View post on imgur.com

    #1395290

    Hi yundian,

    You are correct, shortlink is added by WordPress that’s why it’s in every site.
    To remove it, please add this code:

    add_filter('after_setup_theme', 'avia_remove_shortlink');
    function avia_remove_shortlink() {
    	remove_action('wp_head', 'wp_shortlink_wp_head', 10);
    	remove_action( 'template_redirect', 'wp_shortlink_header', 11);
    }

    Best regards,
    Nikko

    #1395327

    I have add the code:

    remove_action(‘wp_head’, ‘wp_shortlink_wp_head’);

    to remove the shortlink.

    If it is the same function as yours?

    And, I also try to remove the profile and pingback links, what code should I add?

    View post on imgur.com

    #1395495

    Hi yundian,

    Yes, it’s the same function, you can remove that code as well as the code I gave and replace it with:

    add_filter('after_setup_theme', 'avia_remove_shortlink');
    function avia_remove_shortlink() {
    	remove_action('wp_head', 'wp_shortlink_wp_head', 10);
    	remove_action( 'template_redirect', 'wp_shortlink_header', 11);
    	remove_action( 'wp_head', 'avia_set_pingback_tag', 10, 0 );
    	remove_action( 'wp_head', 'avia_set_profile_tag', 10, 0 );
    }

    Hope this helps.

    Best regards,
    Nikko

    #1395536

    Thanks, it is working

    Also find a bug in logo link, there is a blank title, how to fix it or remove it.

    View post on imgur.com

    #1395587

    Hi yundian,

    I think the title isn’t supplied that’s why it looks like that.
    Just supply it with a title and that should show up just fine.

    Best regards,
    Nikko

    #1395689

    Hi,

    The logo img also has title value

    View post on imgur.com

    #1395696

    Hi yundian,

    Hmm, can you try adding this code in functions.php (just change the value of the title):

    function avf_change_logo_title($title) {
       $title = "Logo";
       return $title;     
    }
    add_filter('avf_logo_title', 'avf_change_logo_title');

    Hope it helps.

    Best regards,
    Nikko

    #1395698

    Hi,

    The code let the title value change to “Logo”, how to change the title to “云点SEO”?

    View post on imgur.com

    #1395702

    Hi yundian,

    Please replace the last code I gave to:

    function avf_change_logo_title($title) {
       $title = "云点SEO";
       return $title;     
    }
    add_filter('avf_logo_title', 'avf_change_logo_title');

    Hope this helps.

    Best regards,
    Nikko

    #1395708

    perfect, many thanks, please close

    #1395709

    Hi,
    Glad Nikko was able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘How to remove the shortlink’ is closed to new replies.