Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove trackbacks from posts using functions.php
Tagged: hooks, pingbacks, trackbacks
- This topic has 16 replies, 5 voices, and was last updated 9 years, 10 months ago by jkrytus.
-
AuthorPosts
-
December 22, 2013 at 11:59 am #80774cookieandkateMember
Hi,
I don't want trackbacks to appear on my blog posts. I've googled and searched the forums for a hook to remove the trackbacks from the posts/pages but can't find anything.
To clarify, I do not want to uncheck the following option on the discussions setting page: Allow link notifications from other blogs (pingbacks and trackbacks).
That feature is useful in helping me know about mentions of my content on other websites. I just don't want the trackbacks/pingbacks appearing on my posts or pages.
Thank you!
KateP.s. I am using the Magazine Pro theme, if that is relevant.
December 22, 2013 at 3:40 pm #80808emasaiParticipantYou could probably hide them with css, that is if they use a particular tag.
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comDecember 23, 2013 at 1:27 pm #80943cookieandkateMemberThat's an idea. I want to remove them from the page altogether, though, since google doesn't look kindly on links that are built into the code but don't appear on the page.
December 24, 2013 at 1:49 am #81033Brad DaltonParticipantYou should be able to remove the code in your child themes functions file which adds them. Which theme are you using?
December 24, 2013 at 8:19 am #81061cookieandkateMemberI like that idea. My theme is Magazine Pro.
Thank you for your help!
December 29, 2013 at 1:28 pm #81873cookieandkateMemberI can't seem to figure this out. I tried adding the following to functions.php, but it didn't do anything:
remove_action( ‘genesis_pings’, ‘genesis_do_pings’ );
The Genesis comments.php includes the following:
do_action( 'genesis_before_pings' ); do_action( 'genesis_pings' ); do_action( 'genesis_after_pings' );
I want pings to be gone!
December 30, 2013 at 5:45 am #82013Brad DaltonParticipantStrange that you have them displayed by default because i didn't think any theme does that out of the box.
January 7, 2014 at 8:04 am #83786jkrytusMemberMine has them set by default and like cookieandkate, I would love for them to go away. They are not attractive at all. I'm using the Corporate Theme.
January 7, 2014 at 8:59 am #83799Brad DaltonParticipantI don't have a copy of that theme however you should be able to remove the code. Does the theme developer provide support?
January 7, 2014 at 1:01 pm #83852jkrytusMemberStudiopress is the developer
http://my.studiopress.com/themes/corporate/January 7, 2014 at 6:27 pm #83922Brad DaltonParticipantJanuary 8, 2014 at 10:45 am #84011cookieandkateMemberWell, I don't want to turn off trackbacks because they help me discover cases of stolen content. Surely there is a way to just remove them from the posts/pages instead? I'm really frustrated that Studiopress doesn't offer this option and won't help me find a solution.
January 8, 2014 at 10:57 am #84014jkrytusMemberWell, I don’t want to turn off trackbacks because they help me discover cases of stolen content. Surely there is a way to just remove them from the posts/pages instead? I’m really frustrated that Studiopress doesn’t offer this option and won’t help me find a solution.
Ditto that.
January 10, 2014 at 3:01 pm #84496cookieandkateMemberI emailed Studiopress support about the issue. They told me to turn off "Enable Trackbacks" on the Genesis Theme settings page. They told me that I would still receive notifications in the dashboard, but the trackbacks won't appear on the page, which is exactly what I want to achieve. I turned off "Enable Trackbacks" and the trackbacks are gone from my posts/pages.
I am building a local test site now, though, so I have yet to see if I will receive notifications in the dashboard... I hope so!
June 1, 2014 at 8:16 pm #107796thingsforboysMembernow that you are live, are you receiving notification for trackbacks as you hoped?
June 1, 2014 at 9:17 pm #107800cookieandkateMemberNo! I am not. I haven't received a single trackback since launching my new Genesis-based theme, even when I change my Genesis settings to allow trackbacks.
June 2, 2014 at 9:35 am #107830jkrytusMemberDitto what cookieandkate says. I wish there were more support on it.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.