Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to remove the short link header tag from a specific page. Please suggest me a filter guys. I want to remove the entire

<link rel='shortlink'... 

section from a specific page. Adding a filter to the wp_shortlink_wp_head will work fine? I am not sure whether i can add filter to the function just like that...

Thank you

share|improve this question
    
There is not enough information to answer this question. Sounds theme specific though. –  s_ha_dum Jan 27 '13 at 15:27

1 Answer 1

Replace 2 for ID of your page. Insert into your functions.php

if ( is_page(2) ){
   remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.