• Resolved journeyman_73

    (@journeyman_73)


    Hi,
    I have created widgets for my custom theme as I have needed them and now they are clashing because when they are registering some of them are using the same option name in the db, is there a file or cache to clear to get the correct class name.
    all the files are different in every way
    eg

    class home_CTA extends WP_Widget
    {
        function __construct()
        {
            $widget_ops = array(
                'classname' => 'home_CTA',

    and

    class productsSidebar extends WP_Widget
    {
        function __construct()
        {
            $widget_ops = array('classname' => 'productsSidebar', 'description' => esc_html__("Sidebar Product Page Navigation", 'theme'));

    cheers
    Kev

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Widget class name clash’ is closed to new replies.