• Resolved nealumphred

    (@nealumphred)


    Secondary Title plugin works as advertised but I still have a wee problem: I have an index using the WP Show Posts plugin. When I added Secondary Title, it added unwanted links to the photos in my index.

    In the link above, beneath the first photo, Secondary Title added this:

    (a blog about the changing world we live?in)” itemprop=“image” class=“center” />

    It does this with each post that has a secondary title.

    Needless to say, I do not want that link there. How can I be rid of it?

    Thanks in advance …

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi,

    I’d need a few more details to tell you exactly what to do, but it sounds like you can easily solve this with CSS.

    On the ST settings page, create a title format with <span>s with a class.

    %title% <span class="secondary-title">%secondary-title%</span>

    Then, you simply use the CSS property display: none !important;.

    Since you don’t want this behavior everywhere, use WP’s <body> tag and narrow your CSS down to the classes it gives you.

    Oh, the reason for this, if you’re interested, is your theme. Many themes override filters (which ST uses) or have their own function that escapes HTML characters.

    Let me know if that worked for you!

    Thread Starter nealumphred

    (@nealumphred)

    T

    Thanks for the prompt response!

    Unfortunately, I do not understand most of your CSS instructions.

    Here is what I have in the Secondary Title’s Title format:

    %title% <h1><i><span style=”font-size:80%;”>(%secondary_title%)</span></i></h1>

    Is that code what is causing my problem?

    If so, how do I fix it?

    N

    Plugin Author thaikolja

    (@thaikolja)

    No problem, @nealumphred, that’s what support is for ??

    Unfortunately, I can’t give you more than code snippets for you to try since sharing sensitive data and communication outside this forum not allowed.

    The code itself looks like valid HTML markup; I see no problems in there. With this setting and the option “Auto show” enabled, it should replace every instance of your post/page titles with the given markup and its placeholders. I hope that makes sense?

    So, you referenced it in the title format. But we also need to assign it a class, because you don’t want this effect or event the entire secondary title. So:

    %title% <h1><i><span class="secondary-title" style=”font-size:80%;”>(%secondary_title%)</span></i></h1>

    Notice the class attribute that I’ve added.

    Now we can remove the inline style="..." – if we want. Instead, it’s good practice to separate this. I’d use your themes Customizer. You can access the Customizer when you log in, go to your homepage and select “Customize” from the admin bar on the top.

    Open the custom CSS section and try this:

    .single .secondary-title { display: none !important; }

    Does this clear the role of CSS up a bit?

    Thread Starter nealumphred

    (@nealumphred)

    PS: Here is a link to the one page on that site that has a secondary title:

    https://www.gcc-globalclimatechange.com/introduction/

    Looks fine there.

    Plugin Author thaikolja

    (@thaikolja)

    Yes, I see the <span>, and it does have the class secondary-title. Now the last thing is adding CSS rules where you’d like to suppress the title.

    Thread Starter nealumphred

    (@nealumphred)

    T

    I do not want to suppress the secondary title anywhere.

    I want to be rid of this bit of text/link ((a blog about the changing world we live?in)” itemprop=“image” class=“center” />) on this page (https://www.gcc-globalclimatechange.com/published-posts/).

    The CSS code you gave me eliminated the secondary title on this page (https://www.gcc-globalclimatechange.com/published-posts/), where I want it to remain.

    What’s next?

    N

    Thread Starter nealumphred

    (@nealumphred)

    I am confused: this issue is marked as Resolved at the top of this page when, in fact, we have made no progress at all in addressing my problem.

    What’s happening?

    Plugin Author thaikolja

    (@thaikolja)

    I marked the issue as resolved since I gave you the instruction to use CSS to hide the secondary title. You only have to narrow it down enough so that it doesn’t apply to other parts.

    You can input the CSS on the plugin’s settings page in the field “Title format” or – better practice – wrap it in a <span> and give it a class, like <span class="secondary-title".

    Then you can use, for example, the Customizer’s CSS option to play around until it fits.

    I’d love to fix it for you. But that requires some sensitive credentials, which is not allowed in this forum, so most support is simply eliminating potential errors until it’s found.

    Please also note that most plugin authors also have daytime jobs. Maintaining a plugin or theme can be a lot of work, depending on which way WP goes. Please keep that in mind when asking for fast, free support.

    Thread Starter nealumphred

    (@nealumphred)

    I do not want to hide the secondary title anywhere. But the Secondary Title plugin appears to be adding unwanted text or code to my sites.

    The screenshot above is a page with a list of posts on the blog without the Secondary Title plugin.

    The screenshot above is the list with the Secondary Title plugin activated. I have only added one secondary title (“introduction to gcc”). The secondary title looks fine, just as you said it would.

    The problem is the text/link that appears between the titles and the image above it: (a blog about the changing world we live?in)” itemprop=“image” class=“center” />

    I did not put that there and I haven’t a clue as to what it means. But it only shows up when I activate the Secondary Title plugin.

    So, is there a way that this unwanted text/link can be removed?

    Plugin Author thaikolja

    (@thaikolja)

    Ah, I understand the issue now. Can you give me the text version of your Site Health results so I can see the details of your WP installation? I need to be able to replicate the code in order to get to the bottom.

    Thread Starter nealumphred

    (@nealumphred)

    Excellent!

    How do I get the text version of my Site Health results?

    Plugin Author thaikolja

    (@thaikolja)

    Log in to your Dashboard, and go to Tools -> Site Health. There should be a button to export the results.

    Thread Starter nealumphred

    (@nealumphred)

    No export button but this instead: “If you want to export a handy list of all the information on this page, you can use the button below to copy it to the clipboard. You can then paste it in a text file and save it to your device, or paste it in an email exchange with a support engineer or theme/plugin developer for example.”

    Plugin Author thaikolja

    (@thaikolja)

    Yes, I’d like to see the copied infos. Put it on paste.ee or something.

    Thread Starter nealumphred

    (@nealumphred)

    I have not used Paste or anything like it before. There are no instructions on Paste.

    So, what do I do?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Secondary Title may conflict with WP Show Posts plugin’ is closed to new replies.