Support » Plugin: Timeline and History slider » Change posts title h2 tag

  • Resolved studioavanti

    (@studioavanti)


    Hi,

    Is there a safe way to change the posts title <h2> tag?
    I could edit the template but the customization would be erased on next update.
    Can i copy the template to the child theme, will it be handled by the plugin?
    Or is there a hook i could use in function.php?

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter studioavanti

    (@studioavanti)

    I found a way with jQuery: <h2> becomes <p>.
    Although i guess it would be better to modify the source.

    jQuery(document).ready(function($) {
        $('.wpostahs-centent-title').replaceWith(function() {
            return $("<p class='wpostahs-centent-title' />").append($(this).contents());
        });
    });
    
    Plugin Support Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching here.

    Sorry for the inconvenience, At this moment, template overrides not available in plugin free version.

    Note:- If you update the plugin in the feature then your changed core plugin file change will be lost.

    We hope your solution working perfectly.

    Thanks,

    Thread Starter studioavanti

    (@studioavanti)

    Hi Ketan,

    Thanks for your answer, yes, the JS patch above works fine.
    Better for the SEO in my cases, i think you have understood the reason why i wanted to change the tag 😉

    Plugin Support Rafik

    (@rafikwp)

    Hello,

    Yes, We understand. does your problem is solved?

    Thanks

    Thread Starter studioavanti

    (@studioavanti)

    Hi, yes, problem solved, as you can see above.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change posts title h2 tag’ is closed to new replies.