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

    (@thaikolja)

    Hi and thanks for taking the time to ask your question.

    Unfortunately, your question is a bit unspecific. What do you mean with styling? Do you mean using HTML and/or CSS inside the “Title format”? Somme examples would be helpful, too.

    Also, this feature is supposed to be visible on the front end. Or do you mean it affects other parts beside the secondary title?

    Try elaborating your question a bit more and we will find a way to fix whatever issue you have.

    Thread Starter sequentialmac

    (@sequentialmac)

    Hi there!

    Alright so I’m going to tell you the whole story. Secondary title worked perfectly for a very long while and at some point with an update, the HTML style I had added in the settings section was not coming through, rather it was being shown on the front end.

    What I mean is, I was styling for example
    %secondary_title%
    %title%

    and in the front end it would show as
    TITLE 1
    TITLE 2

    so then I tried
    <h2>%secondary-title%</h2>
    <h1>%title%</h1>

    And it would show all the html coding from the settings part in the front end.

    In the end, I was playing and researching about php so much that I ended up being able to fix the problem myself by using direct inserts instead of the automatic one that comes with the plug in and styling the PHP code directly

    ?? thanks for your awesome

    Thread Starter sequentialmac

    (@sequentialmac)

    I forgot to add the code ticks and it didn’t show well

    what I meant was I used

    %secondary-title%<br />%title%

    and the br would show in the front end.

    Plugin Author thaikolja

    (@thaikolja)

    So by showing in the frontend you mean that the HTML tags are actually visible as text and not interpreted as HTML? Could you make an example screenshot of that and also of your Secondary Title settings page so I can try to reproduce the bug?

    I’d advise everyone to use the manual mode to insert the secondary title. It’s a lot more flexible and you won’t have any styling issues because you can use your style.css. But sometimes the themes are so messy that it’s difficult to find the right place where to put the PHP code. That’s why I’ve added the automatic function.

    So, it looks like there’s a bug. I’m definitely gonna solve it. I don’t like bugs in my plugins, and I want it to work perfectly with you once again ??

    Thread Starter sequentialmac

    (@sequentialmac)

    Hey there! So! I recreated the problem in an easy way so I could send you the images. However, I must say that I think its a theme-caused bug. I tried secondary title on another site with another theme and it seemed to work perfectly fine.

    Alright so the theme was “Serene” which is a free theme and here are screenshots of the back end settings and the front end look.

    I hope this works for you ??

    https://www.dropbox.com/s/equc7ho2cfvduar/Screenshot%202016-05-28%2009.32.35.png?dl=0

    https://www.dropbox.com/s/kf4gdxof2ncish3/Screenshot%202016-05-28%2009.32.57.png?dl=0

    ?? Hope this is helpful!

    Plugin Author thaikolja

    (@thaikolja)

    Thanks for getting back to me.

    I’ve just tested Serene with Secondary Title and it worked fine. Have you modified the theme’s files in the past? Try renaming your theme folder (“serene-backup”) and download the theme again without any changes. That way we can see if it’s an issue with your theme or not.

    If not, it’s more likely one of the plugins that causes the issue. Deactivating all and then activating them one by one with a check in between if the secondary title works. If it stops working, you’ve got your trouble-maker and we can find a solution for that.

    Thread Starter sequentialmac

    (@sequentialmac)

    Actually,

    It seems that I messed up the PHP trying to get some fine modifications and had messed up the PHP which wasn’t allowing Secondary Title to integrate correctly.

    I reuploaded the theme and was more careful with editing the child theme and its all back to normal.

    Thank you for being patient and I hope I didn’t bug you too much!

    Plugin Author thaikolja

    (@thaikolja)

    No problem at all. I’m glad I could help. That’s the reason why I keep offering my help when it comes to my plugins.

    If there’s anything else I can do now or in the future, don’t hesitate to let me know.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Styling shown on front end.’ is closed to new replies.