Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chris Steman

    (@15km)

    Hi Rolf,

    Nice to meet you and greetings from Canada, your site shows off your great photography skills with the showing of your awesome photos.

    Unfortunately I think this is issue is caused by your theme update. I tested the titles on my site and was not able to duplicate with running the latest versions of each of the items. I am assuming it is the theme by looking at the source code of the post and pages on your site and it looks to be encoding the special characters of the page title.

    This can be checked by going into theme editor and checking the code of the index.php file, the title is about midway through the code and under the html comment “Begin content”.

    I will keep testing but let me know if you have any questions.

    Thank you,
    Chris

    Thread Starter rboening

    (@rboening)

    Hi Chris,

    thanks for your quick answer and your kind remarks about my site. I had a look at the page source and see what you mean. While the overview page has the correct reference to your class

    title=”New Gallery “Into The Trees””>New Gallery <span class=”pt_splitter pt_splitter-1″>”Into The Trees”</span>

    the problematic page for some unknown reason seems to escape the characters and hence displays them verbatim instead of executing the code:


    <h1>New Gallery <span class="pt_splitter pt_splitter-1">"Saint Agnes Street Shots"</span></h1>

    I also inspected the index.php page, but unfortunately it isn’t as explicit as one might hope. There is a reference to class “post_quote_title” which could be the culprit, but I need to take a deeper dive to understand better where it is defined.

    I’ll contact the developer of the theme if I’m certain where the error comes from.

    Many thanks again for your support, highly appreciated, keep up the good work!

    Best wishes,
    Rolf

    • This reply was modified 5 years, 8 months ago by rboening.
    • This reply was modified 5 years, 8 months ago by rboening.
    Thread Starter rboening

    (@rboening)

    Funny. I can’t seem to get this page to correctly display the escaped html as it seems to replace everything immediately, so that both code snippets look identical, but I’m sure you know what I mean…

    Plugin Author Chris Steman

    (@15km)

    Hi Rolf,

    Your welcome and thank you for asking the developer of the theme and hopefully they will be helpful and let you know if that page title is being encoded or not.

    For the page that you can’t get to display the escaped html, what page is that happening on?

    Thank you,
    Chris

    Thread Starter rboening

    (@rboening)

    Hi Chris,

    with my comment above I just meant the support forum page right here where I pasted the critical code and it just replaces the escaped code back when displaying the page.

    Anyway, back to the problem itself: Unfortunately, I realised that my support on Themeforest for the theme has run out, so I would have to pay nearly the same amount again to contact the developer. As this has not proved too helpful in the past, I decided against it and had a dive into the sources myself.

    In the template-post-header.php I found the code for for displaying the post title as


    <h1><?php echo esc_html($page_title); ?></h1>

    and surprise, surprise, after replacing it with


    <h1><?php echo $page_title; ?></h1>

    the splitter works like a charm again.

    Now, editing this in the themes source doesn’t seem like the brightest of ideas as it will get overridden again with the next update (surprisingly I can still download these although being out of support), but I already have derived a child theme for other purposes, so now I only need to find the right place for changing the template code there and keep my fingers crossed that it doesn’t have any unwanted side effects.

    Thought I’d let you know that it really had nothing to do with your excellent plugin.

    Kind regards,
    R.

    Plugin Author Chris Steman

    (@15km)

    Hi Rolf,

    I am glad you were able to find and solve the issue in the theme files and that’s good that you are able to still download updates to the theme. If they just added that to the theme then maybe they will remove it in the next update, especially since that function is only used for only the one page title and not all.

    Thank you for your kind words about the plugin and keep up with the great photography.

    Thank you,
    Chris

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Code displaying in post title’ is closed to new replies.