|
Haven't registered yet? Do it here now!
|
msm
Joined: 25 Mar 2008 Posts: 89
|
|
|
|
|
|
|
Posted: Fri Jun 22, 2012 3:43 pm Post subject: Problem with "CLEAN_TITLE" |
|
|
|
|
|
|
|
|
|
|
I've had the following code under my Blog Output settings box for awhile:
Code: | <div class="posttitle"><a href="%%CLEAN_LINK%%">%%CLEAN_TITLE%%</a></div> |
With that code the title of my posts on my main blog page are hyperlinks that go to a single page with the post. I want to change this and have the post titles appear without a link. So I replaced the above code with this:
Code: | <div class="posttitle">%%CLEAN_TITLE%%</div> |
Unfortunately with this code my post titles go away completely. There is a blank space where they would normally be. So I must not understand what CLEAN_TITLE does or perhaps I am not using it properly.
I don't see anything in the CSS class "posttitle" that would be causing this so can you help? |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Fri Jun 22, 2012 9:09 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
hi there, %%CLEAN_TITLE%% prints just the post title text, nothing more. It should be working fine, as i have just tested it and never had an issue reported with it. See your template css styling or design not to be hiding it, when it is not a link anymore.. Also make sure you copy the variable itself from the page help and paste it in your template. Sometimes due to character encoding issues when you manually type something might be misprocessed.. If no luck pm me url and pass to your BO admin and the blog in question. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
msm
Joined: 25 Mar 2008 Posts: 89
|
|
|
|
|
|
|
Posted: Fri Jun 29, 2012 11:51 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I will try the things you suggested but can you verify that this is the correct code that should be placed in the Post Template box in order to only show titles without a link:
Code: | <div class="posttitle">%%CLEAN_TITLE%%</div> |
And this is my CSS code for "posttitle". Does this look OK?
Code: | .posttitle {
text-transform: capitalize;
font-size:20px;
font-weight:bold;
margin:0 18px 10px 10px;
}
.posttitle a {color:#e9e9e9; text-decoration:none;}
.posttitle a:hover {color:#d0d0d0; text-decoration:none;}
|
Thanks! |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sat Jun 30, 2012 7:32 am Post subject: |
|
|
|
|
|
|
|
|
|
|
yes, the css looks ok.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
msm
Joined: 25 Mar 2008 Posts: 89
|
|
|
|
|
|
|
Posted: Sat Jun 30, 2012 10:30 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
OK, I found the problem. When I switched the Post Template code to %%CLEAN_TITLE%% the title was actually there but it was the same color as the background so I could not see it. The posttitle color CSS attribute was in the link part of the CSS so I moved it (color:#e9e9e9;) up to the posttitle CSS section and the title became visable again and with no link, so all is well. Thanks! |
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |