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

    (@thaikolja)

    Thanks for your message.

    So far, there’s only one way to do this: with CSS. Unfortunately I cant give you complete directions now because I don’t know the HTML/CSS structure of your site. But you should be able to do it alone:

    1. Activate the secondary title and change the title format as following:
    <span class="secondary-title">%secondary_title%: </span>%title%

    2. Open the style.css of your active theme and enter the following:

    .secondary-title {
       display:none;
    }

    3. Now you have to find out in what container(s) the secondary title is in that you DO want to display. For example, if you only want to display it in the content post area, it’s usually inside a div called “post” or “entry”. Check your HTML code to find out.

    4. Then use this container on the next line in the .css:

    .post .secondary-title {
       display:block;
    }

    That will hide the secondary title everywhere except for this specific area.

    I hope I could help you. If not, let me know.

    Thread Starter ajas.jansher

    (@ajasjansher)

    Thank you for your quick help.

    I will give you the link of my website. https://www.newapollopolyclinic.com

    I have not yet activated your plugin. I’m running it locally to test it. But still by checking my site, I think you’ll get the structure of the site and then tell me where all I should change the css.

    Plugin Author thaikolja

    (@thaikolja)

    I’m not at home at the moment and unfortunately can’t help you now with that. But I’ll have a look as soon as I’m back.

    Thread Starter ajas.jansher

    (@ajasjansher)

    I have figured it out from your advice.
    Thanks a lot..

    Plugin Author thaikolja

    (@thaikolja)

    Good to hear that.

    Plugin Author thaikolja

    (@thaikolja)

    By the way, I’ve just added this as a function to the settings menu. Now you can set whether you want the secondary title to be displayed everywhere on your site or only in the main post. It’ll be included in version 0.6

    tashword

    (@tashword)

    Is there any chance you can give the opposite setting, too? That is, I want the main title to show in the post but the secondary title to show in a menu.

    Plugin Author thaikolja

    (@thaikolja)

    I’ll have a look in the next days. Thanks for your input, though.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Don't want secondary title on menu’ is closed to new replies.