• ymmar7219

    (@ymmar7219)


    I’m having problems executing some javascript within a certain part of my WordPress front page I created. I want to execute a welcome message within this div.

    I’ve already posted on stackoverflow with no success so hoping for some expert help on here. please click the link to stackoverflow to see the code example.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • JNashHawkins

    (@jnashhawkins)

    A couple different tack ideas come to mind…

    Maybe take this plugin and rework it to understand the time and date… (I could use something like that myself but it’s not something I’d want to tackle right now). Change the messages and images around… you’d have something pretty cool.

    https://ww.wp.xz.cn/plugins/christmas-greetings/

    Especially if it generates shortcode which could be embedded in your posts or pages or inlined and dispersed on a blog’s ‘loop’ pages.

    Else, look at a plugin like Itro Popup. I believe it allows some pretty neat configurations. It hasn’t been updated in some time but I think it still works and you can probably contact the author on their website if needed.

    https://ww.wp.xz.cn/plugins/itro-popup/

    You might also take a good look at these search results for something else yet…

    https://ww.wp.xz.cn/plugins/search/greetings/

    BTW: The code you provided probably runs but doesn’t know what to do with its output as the code runs on page load not when the section of the page is viewed. I’m sure it could be done but I sure don’t know how off the top of my head.

Viewing 1 replies (of 1 total)

The topic ‘WordPress theme front-page JavaScript needs to be executed somewhere on the page’ is closed to new replies.