Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter timramos

    (@timramos)

    Hi,mrtom414 thanks for your reply on my post, I think my problem is my sidebar.php integrating it on my index or functions. (Not sure).

    Here’s my sidebar.php

    <aside>
    
                <?php get_search_form(); ?>
    
                <nav>
                  <?php wp_nav_menu(array('menu' => 'Main Nav Menu'));?>
                </nav>
    
                <div class="widget latest-post">
    
                    <h4>Latest Post</h4>
    
                    <div class="sidebar-post">
                        <p class="date">March 10, 2010</p>
                        <h5>This just in: Don't get Gremlins Wet!</h5>
                        <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.</p>
                    </div>
    
                </div> <!-- END Latest Posts -->
    
                <div class="widget industry-news">
    
                    <h4>Industry News</h4>
    
                    <div class="sidebar-post">
                        <p class="date">March 11, 2010</p>
                        <h5>Widgets are the new Sprockets</h5>
                        <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.</p>
                    </div>
    
                    <div class="sidebar-post">
                        <p class="date">March 03, 2010</p>
                        <h5>Fifth Birthday of the Intersprockletometer</h5>
                        <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper.</p>
                    </div>
    
                </div> <!-- END Industry News -->
    <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Widgets')) : else : ?>
    
            <!-- All this stuff in here only shows up if you DON'T have any widgets active in this zone -->
    
            <?php endif; ?>
    
            </aside>

    Here’s my index.php file

    <?php get_header(); ?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    			<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    
    			<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
    
    			<div class="entry">
    				<?php the_content(); ?>
    			</div>
    
    			<div class="postmetadata">
    				<?php the_tags('Tags: ', ', ', '<br />'); ?>
    				Posted in <?php the_category(', ') ?> |
    				<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    			</div>
    
    		</div>
    
    	<?php endwhile; ?>
    
    	<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    
    	<?php endif; ?>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    and here’s my function.php

    <?php
    
    	// Add RSS links to <head> section
    	automatic_feed_links();
    
    	// Load jQuery
    	if ( !is_admin() ) {
    	   wp_deregister_script('jquery');
    	   wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"), false);
    	   wp_enqueue_script('jquery');
    	}
    
    	// Clean up the <head>
    	function removeHeadLinks() {
        	remove_action('wp_head', 'rsd_link');
        	remove_action('wp_head', 'wlwmanifest_link');
        }
        add_action('init', 'removeHeadLinks');
        remove_action('wp_head', 'wp_generator');
    
    	// Declare sidebar widget zone
        if (function_exists('register_sidebar')) {
        	register_sidebar(array(
        		'name' => 'Sidebar Widgets',
        		'id'   => 'sidebar-widgets',
        		'description'   => 'These are widgets for the sidebar.',
        		'before_widget' => '<div id="%1$s" class="widget %2$s">',
        		'after_widget'  => '</div>',
        		'before_title'  => '<h2>',
        		'after_title'   => '</h2>'
        	));
        }
    
    ?>

    Hope you could help me. for me to continue my development. Thank you very much.

Viewing 1 replies (of 1 total)