WordPress.org

Ready to get started?Download WordPress

Forums

Sidebars in external Pages? (1 post)

  1. GPSchnyder
    Member
    Posted 6 years ago #

    Hi there,

    I'm right now working on a wordpress theme for filmmakers. My Idea is it to have some external pages that only show the contend of the sidebars and insert them via ajax. The Theme itself works, but the external files don't show any content. There is no HTML-Source at al if I call the Sites...

    This is what the Sidebar1.php looks like:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Sidebar1</title>
    
    </head>
    
    <body>
    <!--widget start for Sidebar1-->>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar1') ) : else : ?>
    		<p>please go to your Admin Panel and put some widgets into Sidebar1</p>
    			<?php } ?>
    
    <!--widget end-->
    			<?php endif; ?>
    </body>
    </html>

    Should work, shouldn't it?

    Here is the Link to the theme and the Sidebar1.php

    Hope someone of you can help me, cause I'm lost without it :-)

    Thanks,
    George P. Schnyder

Topic Closed

This topic has been closed to new replies.

About this Topic