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

    (@adiant)

    My apologies for the delay in responding. For some reason, I did not receive the normal automatic WordPress notification that this was here.

    I will do some testing and respond as quickly as I can, in terms of finding a solution.

    Of course, if you have already found a solution, please let me know.

    Thanks!

    Thread Starter pezomatic

    (@pezomatic)

    Hi Jonradio,

    No, I have not found a solution yet. Thanks for your effort to help. Much appreciated!

    Plugin Author jon

    (@adiant)

    This took a while to figure out, and I’m not sure if it will meet your needs, but my testing makes me think it will work for you.

    I haven’t figured out how to make my plugin execute Shortcodes in the WP-Toolbar plugin. Mainly, because WP-Toolbar does not have any Filters (“hooks”) defined within it, to allow my plugin to intervene and replace the WP-Toolbar output.

    But WP-Toolbar has a PHP feature that would allow you to execute Shortcodes. Here is how it would work: instead of using the Topbar Text & Image tab, use the PHP tab and enter
    echo do_shortcode('[nwadcart_widget]');
    in the box labelled “Enter any PHP to use AFTER the TopBar is generated:”

    Thread Starter pezomatic

    (@pezomatic)

    Yes, that worked!

    I tried that solution earlier but I was entering it in the functions.php file of my child them, which did not work. I did not notice that PHP tab in the plugin. The GUI for that plugin is a bit awkward to navigate.

    Thanks so much for your help jonradio.

    Plugin Author jon

    (@adiant)

    I appreciated the experience as I was not familiar with the WP-Toolbar plugin. And know that some of the people I work on websites with will find this very useful.

    Obviously, I am still very interested in any other situations you may run into where my plugin could assist you. Because of the seeming inability to get notified of posts on this plugin’s support forum, if you open another thread here, please take a minute and make sure I know about your post by using this: https://jonradio.com/contact-us/

    Thanks so much! It also gives me a chance to brag that this is the first problem I’ve solved using my new and improved test system, a Raspberry Pi.

    Thread Starter pezomatic

    (@pezomatic)

    Thanks for the link. I have bookmarked your “contact us” page. By the way, I had to do a double-take when I saw your home page. Your Vancouver skyline looks a lot like Minneapolis. ??

    https://static0.therichestimages.com/wp-content/uploads/skyline_mississippi1.jpg
    https://jonradio.com/wp-content/uploads/2012/05/Edmonton_Skyline_Panorama-1000×288.jpg

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Any suggestions on how to get a shortcode to work in this top bar header?’ is closed to new replies.