There is a horizontal line above every quote, which is supposed to separate the title of the quote (if exists) with the text. In this case, if there is no title, I think the horizontal line shouldn't show either. what do you think? or how can we remove that line, from which file?
please see the attached image as example.

CommentFileSizeAuthor
#7 post.jpg17.54 KBvako
Horizontal line32.54 KBvako

Comments

ctmattice1’s picture

Status: Active » Postponed (maintainer needs more info)

This may be a theme related issue if you have a line above each quote on a single page. Can you provide a full page screen shot. Also how do you have the permissions set.

nancydru’s picture

I checked two of my sites that have Weblinks, both using core themes. This does not occur on either site. So I agree that it is likely a theme issue. You should look at your node.tpl.php (or node-weblinks.tpl.php, if you have one) file in the theme. Also, using Firebug in Firefox, or Chrome, you can right click the element and get some idea of where it comes from, and what CSS statement can be used to prevent its display. A semi-educated guess would be something like .node-type-weblinks .node-inner hr {display: hidden;}, placed in your site CSS file.

vako’s picture

Thank for the suggestions. You can see the whole page view on: http://www.keghart.com/quotes
I checked with Firebug and the element is <h2 class="title"> but am not sure if it's linked to the theme or module.
OK, any suggestion how I can remove it even if it's theme related?

any suggestion is much appreciated.
thanks!

ctmattice1’s picture

By chance are you using a fusion theme? There is a issue #1133086: Remove extra h2 tag from .inner div which is the same as this. I haven't traced it down yet why fusion themes do this but both garland and zen themes do not have this issue. it could also possible be due to the skinnr module which fusion highly suggests for additional functionality.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed

On the right hand side, you will see

.node-full-view .node h1.title, .node h2.title {
margin: 0;
padding-top: 0px;
padding-bottom: 2px;
border-bottom: solid 1px #929292;
}

I don't remember if that comes from Pixture Reloaded (your theme) or not because I ran into a serious bug with that theme and have abandoned it. At any rate, I suspect it is a bug either in the theme or an override on your site.

.node-full-view .node h1.title, .node h2.title {
should almost certainly be
.node-full-view .node h1.title, .node-full-view .node h2.title {

You can bypass this with .node-teaser.node-type-quotes h2.title {border: 0;} or .node-teaser.node-type-quotes h2.title {display: none;}, which will also remove the spacing for the blank title.

Now for a bit of shameless advertising: The Util module offers the ability to add an "Edit" link. Since you have no titles to click on to get to an Edit tab, this will allow an easy way to edit the node.

nancydru’s picture

BTW, on my development sites, I don't use CSS compression so I can see which CSS file actually contains the statement.

vako’s picture

StatusFileSize
new17.54 KB

Thanks for the great suggestions!

I use the Admin Links module: http://drupal.org/project/admin_links
which also puts Edit, Delete and other links only if you have permissions to it. see the attached image.

Nancy, the CSS code you gave above to remove the line will not affect other content types?

do you know of any quick way to remove the reads option from the post without affecting other content types?

thanks.

nancydru’s picture

No, the .node-type-quotes class will only affect Quotes nodes. However, the line is incorrectly placed on all level two headings because of the incorrectly coded CSS in the theme (which .node-full-view .node h1.title, .node-full-view .node h2.title would correct).

I rarely use the Statistics module (reads), so no, I don't. The only time I've done it is in a module using hook_link_alter().

vako’s picture

Thanks for reminding me of the statistics module. In the settings at /admin/reports/settings/advanced, I was able to remove Quotes, so now it doesn't show the reads. Now I have to work on removing the line...;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.