How to hide the ugly large title in nodes

vacilando - September 13, 2007 - 07:40
Project:TrackBack
Version:6.x-1.x-dev
Component:Other
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Is there a way to hide or change the looks of the "Trackback URL for this post:" heading? It looks very ugly, esp. at the bottom of shorter pages.

#1

vacilando - September 13, 2007 - 08:32
Title:How to hide the ugly title» How to hide the ugly large title in nodes

Further to this -- I have located the title "Trackback URL for this post:" in function theme_trackback_url.

I've commented out the only line in it
return '<div id="trackback-url">'. theme('box', t('Trackback URL for this post:'), $url) .'</div>';
and replaced it by
return '';

As a consequence, my pages now do not show the huge trackback title nor the link, but I assume that since the RDF field is intact, the automatic trackbacking will still work. Look at the source of http://quidne.vacilando.org/ - you will see that there still is the trackback code

<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description rdf:about="http://quidne.vacilando.org/home" dc:identifier="http://quidne.vacilando.org/home" dc:title="Home" trackback:ping="http://quidne.vacilando.org/trackback/1" />
</rdf:RDF>
-->

Is this assumption correct?
If so, why not build in a checkbox that would allow switching off display of the title and/or the trackback link but still allow trackbacking for the given content type?

#2

lomz - February 8, 2008 - 07:04

Will this be function be added?

#3

tobias - February 13, 2008 - 21:40

I'm curious about this also. Is it necessary to list the trackback on blog posts for the trackbacking to work? if so, we can of course make it less prominent using CSS.

Cheers,

Tobias

#4

jfall - March 2, 2008 - 22:22

Perhaps I'm off base here (b/c I don't use TrackBack), but...
Could you not simply add display:hidden for #trackback-url in your style sheet?
Just an idea.

#5

darnbox - April 19, 2008 - 16:46

I fixed it CSS with this code:

/*trackback styles*/
#trackback-url .box h2 {
font-family: "Lucida Grande","Lucida Sans Unicode", helvetica, verdana, arial, sans-serif;
font-size:0.8em;
font-weight:normal;
letter-spacing:normal;
}
#trackback-url .content {
font-size:0.75em;
}

I'm using the marinelli theme, you can see the results here: Media Politica. To use it on your site you'd need to update the font family to match the theme you're using, and you may have to tweak the font sizes a bit.

I'd still like to see some kind of formatting control in the actual module, because this only fixes this one theme. Also, the spacing (margin between it and the content) seems too tight, but that would probably mean more messing with the theme to fix it.

Thanks.

#6

James W. Alvies - July 15, 2008 - 21:28

I'm looking to change the H2 tag for the text: Trackback URL for this post.
Anybody know how I may go about doing this?

Thank you,

J

#7

thePanz - October 24, 2008 - 08:37

I added the feature you asked for in my patch for this issue: #297487: improvements for trackback node display
My post is here: http://drupal.org/node/297487#comment-1073709

#8

lomz - October 24, 2008 - 10:38
Status:active» fixed

#9

thePanz - October 24, 2008 - 13:05
Version:5.x-1.2» 6.x-1.x-dev
Status:fixed» needs review

Please review the *huge* patch here: http://drupal.org/node/297487#comment-1073709

#10

wretched sinner... - November 20, 2008 - 23:56
Priority:critical» normal
Status:needs review» duplicate

@thePanz - if the code is in another issue queue, then that one needs to be marked CNR, not this one.

Marked as duplicate of #297487: improvements for trackback node display, being the location of said patch.

 
 

Drupal is a registered trademark of Dries Buytaert.