• lendl

    (@lendl)


    If i make a new page with some pictures in it i want those pictures to go the right in a widget. (you only see those pictures there when you are on that page).

    Does someone know a solution to my problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • dragonsjaw

    (@dragonsjaw)

    You need to make a new sidebar.php template.
    You need to make sure your functions.php lists the number of sidebars your theme uses.
    You need to call the new sidebar you just made in the special Page template you just made.

    Example: this is my sidebar5.php template which is uploaded to the server (ftp or cpanel):

    <div id="sidebox" class="sidebar">
    	<ul class="sidebox_list">
    <?php
    		if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(5)) : ?>
    <?php
    	endif; ?>
    	</ul>
    </div>

    Then I call it using this on Page.php or whatever special page template you just made and uploaded:

    <?php include ('sidebar5.php'); ?>

    By making sure your sidebars are all widget friendly this will work.

    When you go into the dashboard to widgets, in this case, you will see a sidebar5.. and you can add what ever widgets you want to this sidebar and they will only show up on the specified page. I used mine to also just add photos to this one page.

    Thread Starter lendl

    (@lendl)

    Isn’t there a widget that take’s all the <img src=”something” /> and put’s it in a widget?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New page with pictures but those go into a widget’ is closed to new replies.