Forums

WordPress Classic (2 posts)

  1. lindsayanng
    Member
    Posted 1 year ago #

    I am working on a quick wordpress website to manage content for a friend's business. I usually use sandbox for my paid jobs, but this time I figured i would try something different because sandbox isn't officially supported. I read that the classic theme is pretty close to a good start so i went with it

    Anyways, there is a BIG question in my mind. WHERE DO THEY CALL THE SIDEBAR FROM?

    I look in the theme files and I see the functions.php code to generate the sidebars, and the sidebar.php to actually build it.. then I intend to see a call for sidebar.php or get_sidebar in the page template or index.php page.

    I do not see that there.

    So where is the sidebar called from and how can I create a conditional sidebar or different sidebars for different pages?

    <?php
    /*
    Template Name: home
    */
    
    get_header();
    ?>
    
    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    <div id="mainContent">
    <img src="/wp-content/themes/classic/images/comps/family.jpg"/>
    </div>
    	</div>
    
    </div>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <?php get_footer(); ?>
  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    there are only 10 files in the 'classic' folder, and two of them are css files, and one screenshot; one is sidebar.php itself; that leaves 6 files to look through.

    did you look into footer.php?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.