Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aliferis

    (@aliferis)

    FYI

    so does this break theme

    <?php show_wp_user_stylesheet_switcher(array(‘list_title’=>’Available styles’, ‘show_list_title’=>’false’, ‘list_type’=>’icon’));?>

    so does using shortcode in template with do_shortcode method

    Plugin Author vgstef

    (@vgstef)

    Ok, here’s the solution. You have to declare it “global”. So the php code in your theme should be :

    <?php global $wpUserStylesheetSwitcher;
    $wpUserStylesheetSwitcher->show_wp_user_stylesheet_switcher(array('list_title'=>'Available styles', 'show_list_title'=>'true', 'list_type'=>'icon'));?>

    Can you try it?

    Thread Starter aliferis

    (@aliferis)

    awesome – it works !

    thank you

    Joe

    Plugin Author vgstef

    (@vgstef)

    Welcome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘template code breaks theme’ is closed to new replies.