Sidebars missing on about page? (4 posts)

  1. technologyinclass
    Posted 6 years ago #

    Anyone know how to manage or even just show the sidebars on all pages? Im using the Unnamed Lite template. Would like whats on the Home page to show up on the About page. Anyone know how to then edit the ads on the about page?
    Link: http://technologyinclass.com/blog/

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    To add the sidebar to pages, you'll need to edit page.php in your theme and include a call to the sidebar along the lines of:

    <?php get_sidebar();?>

    Look at there the sidebar is called in your theme's index.php file and use that as a guide.

    The ads are from Google AdSense. If you don't have an AdSense account, you need to remove the script for these ads from page.php (should be near the bottom of the file). Otherwise, you'll be effectively showing someone else's ads on your site.

  3. technologyinclass
    Posted 6 years ago #

    This is what I have in my page_php, Im unsure of what I need to change? Thanks:

    <?php get_header(); ?>

    <div id="primary-content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="entry" id="post-<?php the_ID(); ?>">
    <h2 class="center"><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <?php link_pages('<p>'.__('Pages:','unnamed').' ', '</p>', 'number'); ?>
    <?php edit_post_link(__('Edit','unnamed'), '<span class="metaedit">','</span>'); ?>
    <?php endwhile; endif; ?>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

  4. lpxed
    Posted 6 years ago #


    I'm having this same problem. Did you ever get this resolved?

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.