Allowing shortcodes in widget area

Homepage Community Forums Epik Theme Support Allowing shortcodes in widget area

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10234
    bf2426
    Customer

      Love the Theme!
      I want to use the home “feature 5” widget area to hold text on the left and an opt-in box on the right.

      I am using the feature-left/feature-right classes you set up and my optin boxes are created using Hybrid connect.

      As I want the box to sit to the right I am trying to use the HC shortcode but it doesn’t work.

      I have tried adding this code to my functions.php file /* Allow shortcodes in widget areas */
      add_filter(‘widget_text’, ‘do_shortcode’); but its still does not work.

      Can you help?

      Can’t point you to a URL as I am building the site offline so I hope you can understand the above.

      Bill

      #10242
      Eric
      Customer

        Are you asking how to get your plugin to work? If so you would actually need to contact the developers of that plugin as most people here probably aren’t familiar with it. The plugin author/developer should have a forum or documentation to help you get it setup.


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #10250
        bf2426
        Customer

          Hi Eric,

          Thanks for the response.

          No the question is not about how to get the plugin to work. It works fine.

          The plugin gives you a few options to display the optin box on your site.. a shortcode or a widget are two of them.

          Using the plugin widget along with a text widget in the same widget area would be ideal but it would place the optin box above or below the text

          I want the optin box to the side of the text. Just like the image/text placement in the demo site.

          I thought I could achieve this by adding a text widget to the “feature-5” widget area and splitting it with the “feature-left” and “feature-right” classes Wes has provided in the CSS and adding the shortcode to one side and text to the other. But of course the shortcodes do not work in widget areas… as I have now discovered!

          I googled how to allow shortcodes in WP widget areas and found the code snippet above to be add to the functions.php

          I added the code snippet to the php file but it still does not work.

          I don’t understand how to get shortcodes working in the widget area… that’s the question. Is it possible in genesis/epik? If so how do I do it.

          If not I would have to look at how to replace the “feature-5” widget area with two widget areas ie (feature-5 left and feature-5 right) so I could add text to one and the plugin widget to the other….. but that’s a different thread.

          hope this is understandable

          regards

          Bill

          #10253
          Eric
          Customer

            Not sure really as I’m not familiar with it myself.

            If there is anyone out there that has used this plugin please feel free to chime in.


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

            #10255
            bf2426
            Customer

              Tks Eric I think I’ll try another tack on this.

              Bill

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.