• Resolved hcyja1

    (@hcyja1)


    Hi, i’m trying to add a subtitle below the title, but it doesn’t seem to work. I’ve added a “subtitle” input on the admin side, but cant seem to display it on the client side. Any help would be much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Camille V

    (@socrapop)

    Dear @hcyja1,

    I don’t quite understand what you are trying to do, could you elaborate?

    Are you overriding the code of the plugin?
    If yes, you should change 2 files :

    – First : /includes/public/cttm-shortcode.php
    You should add you field to $cttm_postdatas array.

    – Second : /includes/public/js/travelersmap.js
    You need to get the markerdatas from postdatas object
    Then you need to change cttmGeneratePopoverHTMLOutput() function to add the html markup of your subtitle
    Finally, you need to change cttmPopulatePopoversHTMLOutput() function to populate your marker with your subtitle.

    You can search for excerpt inside this file to see how I do for the excerpt field 😉

    • This reply was modified 4 years, 7 months ago by Camille V.
    • This reply was modified 4 years, 7 months ago by Camille V.
    Thread Starter hcyja1

    (@hcyja1)

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding a subtitle to container’ is closed to new replies.