Help me with my wordpress sidebar php code

Discussion in 'PHP' started by irule272, Jul 17, 2009.

  1. #1
    Hello!

    I've downloaded a theme and it has already a pre-made widget on it. The problem is these widgets are not visible on the widget setting on my admin cp and everytime I will add a new widget these pre-made widgets will automatically be remove. I wonder if is it possible to add a widget without my pre-made widget remove from the side or make my pre-made widget visible on my widget setting on my admin cp.


    Here's the code...

    <!-- begin sidebar -->
    
    
    <div id="sidebar">
    
    	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
    	
    	[B]PRE MADE WIDGETS HERE[/B]
    
    <!-- end sidebar -->
    Code (markup):

    I hope someone will fix this for me thanks! :)
     
    irule272, Jul 17, 2009 IP
  2. qprojects

    qprojects Peon

    Messages:
    1,901
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can include both of them by using
    
    <!-- begin sidebar -->
    <div id="sidebar">
    PRE MADE WIDGETS HERE
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) )  ?>
    <!-- end sidebar -->
    
    PHP:
     
    qprojects, Jul 18, 2009 IP