• Resolved jimbo-76

    (@jimbo-76)


    Hi,

    Firstly thanks for a great plugin, really like that it shows current status.

    I’m trying to add the short code current status to my header file, unfortunately it’s not having any of it.

    I tried adding headers and footer plugin to put a shortcode in that and it only showed the shortcode in brackets.

    Adding this to the header would be really good, I do notice that your shortcode is with hyphens and not underscores like other shortcodes in my theme?

    If you have got your plugin to work in the header please let me know.

    Certainly happy to leave you a review on this plugin, thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor eugenandrei

    (@jumparound)

    Hey Jimbo,

    Thanks for the message. Could you be a bit more specific on how it is you’re trying to add that shortcode in the header and footer? Are you doing it directly in the header.php file by using the do_shortcode function ?

    Thread Starter jimbo-76

    (@jimbo-76)

    Hi, that was a quick response.

    Yes addded do_shortcode but I noticed that I needed to add open_note and closing_note

    I discovered an issue however, the current time would not refresh but that was down to my cache plugin… I have now excluded my contact page in the settings.

    If put in the header it’s not going to refresh the time, I’d rather not stop caching my home page to get that working… can the plugin script / js be excluded from the cache so the current time refreshes?

    I now have another issue with the next day code, it’s meant to say open Tuesday as the next day but it’s still saying “opens Monday at 9:30am”

    Why is this not showing correctly?

    Thread Starter jimbo-76

    (@jimbo-76)

    I have tried adding different options, had this as a widget but added short code to the page, it keeps telling me next working day is Monday when it is Tuesday?

    Clearly not working, I had high hopes for this plugin but looks like I will need to look at another plugin.

    Plugin Contributor eugenandrei

    (@jumparound)

    Hey Jimbo,

    Would you mind letting me know the exact schedule you entered there as well as the timezone you’re on – so I can troubleshoot this better?

    Thread Starter jimbo-76

    (@jimbo-76)

    Hi Eugen,

    The main issue seems to be on the closing note, when adding the next day and time… I think it was like this below

    closing_note we’re closed now but open again on {next-opening-day} {next-opening-timeframe}

    Problem seems to be that if I close at 5pm on Monday it won’t then pickup the next day ‘Tuesday’ obviously puts current day of Monday ?

    Plugin Contributor eugenandrei

    (@jumparound)

    Hey Jimbo – I just rolled an update to this plugin. Would you mind updating it and letting me know if this issue is still occurring ?

    Thread Starter jimbo-76

    (@jimbo-76)

    Eugen,

    Your update seems to have done the trick.

    I appreciate the quick response on this, shows your committed to your plugin and people will appreciate that.

    I will leave you good feedback soon, thanks again for the plugin 🙂

    Plugin Contributor eugenandrei

    (@jumparound)

    Jimbo – glad to hear everything’s working fine now! Please don’t hesitate to reach out if you have any other questions or concerns!

    Thread Starter jimbo-76

    (@jimbo-76)

    Sorry to be a pain…. if I put this in the header how do I eliminate caching of the current time, are any js scripts used that I can exclude?

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

The topic ‘Adding Shortcode to header’ is closed to new replies.