[ASK] Multiple CSS On Wordpress

6 replies
  • WEB DESIGN
  • |
i want to add 2 style on my wordpress theme to my client but something wrong with my theme

i just add this code to my theme function

PHP Code:
    array(    "name" => "Choose Style",
            
"type" => "heading",
            ),
            array(    
"name" => "choose your style",
            
"id" => $shortname."_choose_style",
            
"type" => "select",
            
"std" => "Red",
            
"options" => array("Red""Blue")),

            ), 
and i just try this to my header theme

PHP Code:
<?php $header_act get_theme_option('header_act'); if(($header_act == '') || ($header_act == 'Red')) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/red.css" type="text/css" media="screen" />
<?php } else { ?><link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /><?php ?>
my theme fall apart now

I Just Try in LocalHost using xampp
#css #multiple #wordpress

Trending Topics