Go to Top

Display Callback Request in a Widget Area WordPress

– How to display Callback Request in a widget area on WordPress.

More people appear to be having an issue when they try to display my callback request plugin in a widget area on their wordpress page.

Due to this i’ve decided to create this post as a tutorial for anyone experiencing the same issue.

So incase anyone else runs into this issue where if the shortcode is put into a widget area and it just displays as text rather than the callback request form please follow these instructions:

1) Log into your admin page for your wordpress

2) Go to Appearance – Editor

3) Select your theme and find the functions.php file

4) Add the following line between the < ?php and ?> tags
add_filter('widget_text', 'do_shortcode');

This should enable the option for your theme to display shortcodes in widget text areas.

13 Responses to "Display Callback Request in a Widget Area WordPress"

  • Tobi
    November 4, 2014 - 5:19 pm Reply

    Hey Jo,

    I am unable to receive any mails, even though I configured everything as should.

    Do you mind taking a look at my page?

    Cheers!

    • Jo
      November 4, 2014 - 5:44 pm Reply

      Hi Tobi,

      Thanks for getting in touch. Please send me an email with the web site address and the wp-admin login details and i’ll be happy to have a look for you.

      KR Jo

  • koos maat
    October 27, 2014 - 8:33 pm Reply

    Hi Jo,
    Can you set the code in the .php please, i try it for 3 hours ;(( i want in the place from the “call tol free” button.

    ‘Slider Thumb’,
    ‘listing-thumb’ => ‘Listing Thumb’,
    ‘latestpost-thumb’ => ‘Latestpost Thumb’,
    ‘category-thumb’ => ‘Category Thumb’
    );
    return array_merge( $sizes, $custom_sizes );
    }

    //Set Default permalink on theme activation: start
    add_action( ‘load-themes.php’, ‘default_permalink_set’ );
    if(!function_exists(‘default_permalink_set’)){
    function default_permalink_set(){
    global $pagenow;
    if ( ‘themes.php’ == $pagenow && isset( $_GET[‘activated’] ) ){ // Test if theme is activate
    //Set default permalink to postname start
    global $wp_rewrite;
    $wp_rewrite->set_permalink_structure( ‘/%postname%/’ );
    $wp_rewrite->flush_rules();
    if(function_exists(‘flush_rewrite_rules’)){
    flush_rewrite_rules(true);
    }
    //Set default permalink to postname end
    }
    }
    }
    //Set Default permalink on theme activation: end
    ?>

    • Jo
      October 27, 2014 - 8:40 pm Reply

      Hi,

      I’m not sure what you mean. What are you struggling with here?

      Can you email me? Then I can look at logging into your site to solve the problem.
      Thanks

  • Inspired Design
    July 23, 2014 - 11:55 am Reply

    Hi,

    I cant find the shortcode on the plug-in.

    Where is it?

    Kind Regards,
    Michelle

    • Jo
      July 26, 2014 - 8:23 pm Reply

      Hi Michelle,

      The shortcode is callback_shortcode

      Thanks
      Jo

  • Denise
    May 14, 2013 - 3:37 pm Reply

    hi Jo, sure, I’ll send you the functions.php file, will do that now… and yes, just the [callback_shortcode] shows up.

  • Denise
    May 14, 2013 - 12:35 pm Reply

    No, I must be stupid. I can’t make this work, I’ve done what you said. I’ve also put the text widget in the sidebar and included [callback_shortcode] in the text area. Is that wrong? Sorry to be a pain!

    • Jo
      May 14, 2013 - 12:55 pm Reply

      Hi Denise,

      Could you email me your website URL and a login username and password?
      Or if it’s easier if you could email me your functions.php i will have a look to make sure there are no issues there.

      What is it that shows up on your website? Is it just the text?

      Thanks
      Jo

  • Paul Alves
    March 26, 2013 - 3:10 pm Reply

    Hi Jo
    Thank you for creating “callback request” plugin. It works fine with my wordpress website.
    Cheers
    Paul

    • Jo
      March 26, 2013 - 3:38 pm Reply

      Hi Paul,
      No problem! Glad it’s working well for you.
      – Jo

  • David
    February 3, 2013 - 5:25 pm Reply

    Is it possible to redirect the page after it’s been submitted, just so I can put Google tracking code on it.

    thanks
    David.

    • Jo
      February 6, 2013 - 2:04 pm Reply

      Which page did you want to redirect?
      Thanks
      Jo

Leave a Reply to Jo Cancel reply

Your email address will not be published. Required fields are marked *


4 + = eight

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>