Need some wordpress help its urgent

4 replies
I want to embeed amazon widgets just below the featured image.

Look at this site.

SEO Firepower - Dominate The Search Engines

I am using woo themes. But i dont know which page i have to edit to insert that amazon code.

Can any one help me.

Thnx.
#urgent #wordpress
  • Profile picture of the author John Motson
    I don't know woo themes, but the logical place too look at is in home.php or index.php template?

    John
    {{ DiscussionBoard.errors[2535375].message }}
  • Profile picture of the author thomasr
    you have to insert the code in the mainindex.php file
    Signature

    Of all the things I've lost I miss my mind the most...
    -Mark Twain

    Someone stole my mood ring... I don't know how I feel about that.
    -Tracey Morgan 30 Rock

    {{ DiscussionBoard.errors[2535762].message }}
  • Profile picture of the author turnej
    I would reiterate the guys here, you would generally add this into the index.php file, perhaps you could give more details of your files etc so we can help more
    {{ DiscussionBoard.errors[2541625].message }}
  • Profile picture of the author TheJedi
    I'm not a PHP programmer, but I've used that particular theme a few times now and I'm pretty sure it's not in the index.php file. I think what you are looking for will be in these:

    yoursitename.com/wp-content/themes/gazette/layouts/blog.php or default.php

    If any actual programmers read this, here is what the index.php file for that theme looks like if it's of any help:
    Code:
    <?php get_header(); ?>
    
            <div class="col1">
    
                <?php
                        if (get_option('woo_show_carousel') == 'true') { include (TEMPLATEPATH . "/includes/featured.php");}
                ?>
                
                <?php
                       if (get_option('woo_home') == "true")
                    include (TEMPLATEPATH . '/layouts/blog.php');
                    else            
                    include (TEMPLATEPATH . '/layouts/default.php');            
                ?>
                
                <?php
                       if (get_option('woo_show_video') == 'true') { include (TEMPLATEPATH . "/includes/video.php");}
                ?>
    
            </div><!--/col1-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Since the default.php and blog.php files are pretty much the same, I'm just including the blog.php code below to save space and time:

    Code:
    <div class="box">
    
        <?php
         if (is_paged()) $is_paged = true;
            
         $featposts = get_option('woo_show_carousel'); // Number of featured entries to be shown
         $ex_feat = "-" . get_cat_id(get_option('woo_featured_category'));
        
         $showvideo = get_option('woo_show_video');
         $ex_vid = "-" . get_cat_id(get_option('woo_video_category'));
        
         if($featposts == "true"){ $exclude[] = $ex_feat;}
         if($showvideo == "true"){ $exclude[] = $ex_vid; }
         if(!empty($exclude)){
            $ex = implode(',',$exclude);
         }
        
         $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$ex&paged=$paged&showposts=6");
        
         if (have_posts()) : $counter = 0;
         while (have_posts()) : the_post(); $counter++;
         ?>
    
            <div class="post-alt blog">
    
                 <?php if ( get_option('woo_resize') ) { if (  get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS  THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
                            
                             <a title="<?php _e('Permanent Link  to',woothemes); ?> <?php the_title(); ?>" href="<?php  the_permalink() ?>" rel="bookmark"><img src="<?php echo  bloginfo('template_url'); ?>/thumb.php?src=<?php echo  get_post_meta($post->ID, "image", $single = true);  ?>&amp;h=57&amp;w=100&amp;zc=1&amp;q=95"  alt="<?php the_title(); ?>" class="th" /></a>            
                    
                <?php } } ?>        
                
                 <h2><a title="<?php _e('Permanent Link  to',woothemes); ?> <?php the_title(); ?>" href="<?php  the_permalink() ?>" rel="bookmark"><?php the_title();  ?></a></h2>
                <p  class="post_date"><?php _e('Posted on',woothemes); ?> <?php  the_time('d F Y'); ?>. <span class="singletags"><?php if  (function_exists('the_tags')) { ?><?php the_tags('Tags: ', ', ',  ''); ?><?php } ?></span></p>
                
    
                <div class="entry">
                    <?php the_content(__('<span class="continue">Continue Reading</span>',woothemes)); ?>
                </div>
    
                  <p class="posted"><?php _e('Posted in',woothemes);  ?> <?php the_category(', ') ?><span  class="comments"><?php comments_popup_link(__('0  Comments',woothemes), __('1 Comment',woothemes), __('%  Comments',woothemes)); ?></span></p>
            
            </div><!--/post-->        
    
        <?php endwhile; ?>    
        <?php endif; ?>    
        
        <div class="fix"></div>
        
        <div class="more_entries">
            <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
                <div class="fl"><?php previous_posts_link(__('&laquo; Newer Entries ',woothemes)) ?></div>
                <div class="fr"><?php next_posts_link(__(' Older Entries &raquo;',woothemes)) ?></div>
                <br class="fix" />
            <?php } ?>
        </div>        
        
        <div class="fix" style="height:15px"></div>
    
    </div>
    As I said, though, I'm not a PHP programmer so I could definitely be wrong about that assumption. Hopefully seeing the code will allow someone with more experience than I to help you.

    Also, sudes16, I'll be sending you a PM sometime tomorrow. It's 4:00 am here and I really need to get some sleep, but I'd like to trade some ideas with you regarding the use of that particular theme. I like it myself.

    Good luck to you.
    Signature

    {{ DiscussionBoard.errors[2548026].message }}

Trending Topics