• Resolved Juha Mets?kallas

    (@juhametsakallas)


    I had this working, i.e. I could attach some CSS to the link to make it look like a centered button at the end of a posting, but after the latest update all such formatting gets trimmed off from the “Link text”.

    See the end of a posting at my site which shows only a plain text link (“Keskustel”) while it should look like the button (“Keskustelut”) at the end of the front page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Robin W

    (@robin-w)

    ok, so can you say what the link test used to have that you hooked to ?

    • This reply was modified 1 year, 10 months ago by Robin W.
    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    I do not remember for sure how I did it, but I could make the link to look like a centered button instead of the current left-aligned link. Before I undertake a process of restoring old backups to check how I did it, I guess that the “link text” field allowed html (e.g. <span class="myButton">Click here</span>), cf. the field “Content of topic first post”.

    Can the “link text” be made to permit html or a shortcode so that I can attach some CSS to it?

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Correction, the “link text” does not get trimmed but any html content is simply not evaluated, i.e. <span class="myButton">Click here</span> looks like <span class="myButton">Click here</span>, there is no rendering as defined by the CSS class myButton.

    Plugin Author Robin W

    (@robin-w)

    Thanks.

    Version 2.2.7 made no changes to the rendering of this area as far as I can see, so I’m not sure why you are seeing a problem as part of a plugin update.

    The code that the link is rendering is

    <div id="comments" class="comment-respond">
    	<a name="respond"></a>
    	<div class="entry-content">
    				<a >Keskustele</a>
    	</div><!-- .entry-content -->
    </div>

    you could hook to

    .comment-respond div.entry-content a

    or probably just

    .comment-respond a

    with css.

    As far as you last comment about the code not being ‘evaluated’, that would be server or browser related, plugins do not prevent css evaluation, so I’m a bit confused as to what you are saying here?

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    A CSS selector div.entry-content a did the trick, thank you.

    I have had a CSS selector for a button for a long time. There are several dark blue buttons on the site, all using the same CSS definition. As I said, I cannot remember for sure, but I think it previously was possible to have something like <span class="myButton">Click here</span> (or <myButton>Click here</myButton>) in the “Link text” field and have the text using whatever style definitions you had for that class or element. Now that html element does not get evaluated, i.e. you literally see “<span class…”.

    Compare this to the “Content of topic first post” which gets evaluated. For instance I have for that %excerpt…<br/><br/>[Read the whole article %title] and I do see the excerpt, an empty line and the text with the name of the article.

    So something has definitely changed, it might be this plugin or it might be something else. Anyway adding that CSS selector to my button CSS selector (some tweaking was required) solved the issue (which should not have risen at the first place at all).

    Plugin Author Robin W

    (@robin-w)

    glad you are fixed

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to customize link to the topic? – second take’ is closed to new replies.