ThemeShaper Forums » Thematic

[closed]

Sidebar/widgets don't display in third party script

(1 post)
  • Started 3 years ago by Moss
  • This topic is not resolved
  1. Moss
    Member

    Hi Everyone,
    First of all I have to say Thematic is great! I am a designer/newbie to developing and I have learned a lot from reading the documentation and forums. I have successfully wrapped my WP header and footer design around a third party business directory script. However I have hit a brick wall.
    In short:
    The problem is that I can’t get the sidebar asides/widgets to display, I believe the hooks in my sidebar.php aren’t defined in the functions.php properly, I have tried many variations, but I don’t fully understand the workings of WP so it’s making it near impossible for me. Any help would be much appreciated!

    I will try explain the details the best I can:
    I am using WP installed locally (XAPP) and Thematic 0.9.7.8. I am using a third party business directory script, which I have setup in a separate directory of WP.

    I have successfully integrated my design by linking to my third party template to my WP CSS and using the below snippet to call my WP header and footer:

    <?php // URL TO INCLUDE:
    $yoururl = "http://localhost/wordpress/pmd_header.php";

    $fd =fopen("".$yoururl."","r");
    while ($liner=fgets($fd,10000)){
    $requesttext .= $liner;
    }
    fclose ($fd);

    echo $requesttext; ?>

    The above code calls a separate file that I have placed In my WP directory (one level up from the above the third party script) which contains the below code:

    <?php require($_SERVER["DOCUMENT_ROOT"].'/Wordpress/wp-load.php'); ?>
    <?php get_header(); ?>

    This successfully calls the header and I have done the same for the footer. However no matter what I try, I can’t get the sidebar widgets to appear. It pulls in the divs but not the dynamic data.
    I only require the subsidiary asides to appear in my footer. Can anyone suggest what I have put in my functions for this to work? Sorry if it’s a stupid question.

    Thanks,
    Moss

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.