• Resolved tenfoursolutions

    (@tenfoursolutions)


    I’m attempting to use the shortcodes create for some widgets that are part of the theme. However they wont display. If I use a simple default wordpress widget, it will display. Is my theme somehow over-riding or not allowing the plugin to work with it’s widgets?

    Thanks

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

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    Hi,

    This is happening because the PHP classname registered by the theme and the actual class name do not match. For example, for the About widget there is:

    
    function transfers_about_widgets() {
    	register_widget( 'transfers_About_Widget' );
    }
    
    // Widget class.
    class transfers_about_widget extends WP_Widget {
    ...
    }
    

    Notice the transfers_about_widget name and transfers_About_Widget do not match. If you make them the same it will work as expected.
    Please contact the theme authors and ask them to fix this.

    • This reply was modified 6 years, 10 months ago by shazdeh.
Viewing 1 replies (of 1 total)
  • The topic ‘Widgets not appearing on page when using shortcodes’ is closed to new replies.