Jump to content

Blog Widget: Preventing new line in "posted by"

Featured Replies

Posted

I really dislike stylistically how a new line is forced between "By X in" and the name of the blog in this widget:

Untitled-1.thumb.jpg.844221ebd19eab99a0acfbe4417242b7.jpg

I'd rather it all appear on a single line: "By Tim in EAB News".

So I thought I would amend the template to fix it. I've gone to blogs > widgets > entryRow and ...

<span class='ipsType_blendLinks ipsType_light ipsType_medium ipsType_break ipsContained'>{lang="byline_nodate" htmlsprintf="$entry->author()->link()"} {lang="in"} <a href='{$entry->container()->url()}' class='ipsType_blendLinks ipsTruncate ipsTruncate_line'>{$entry->container()->_title}</a></span>

... there's no line break.

It appears that the <a> anchor is forcing a new line. Is that normal? It wouldn't normally do that if i were writing a standard paragraph and wanted to insert a link to a new page.

Any thoughts or solutions?

Edited by Meddysong

  • Author

Solved it. It's the presence of the class ipsTruncate_line which caused it.

  • 1 month later...

Ha! I'd say thanks, but the only way I knew what to search for was by basically figuring it out myself. 

Hang on, I'm removing ipsTruncate_line and it's still doing it. But not on the block preview. I'm wondering if it's a page / div width thing...

Ended up removing ips_break and ips_contained as well. I wait to see what knock on effects those have...

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.