Indomagz 2.0
-
Hello,
I am using the following theme: http://www.magznetwork.com/wordpress-themes/indomagz-free-premium-wordpress-theme.html
However, after installing it on http://alzahra.org.uk/alzahra/ it does not display the same as the sample on the site that let the theme out, as in it doesn’t show the posts underneath the sticky, nor does it show any breadcrumb images.
Please advise.
Thanks.
-
That theme seems to be expecting posts in Category ID 1.
For instance in that theme’s home.php it has code similar to this in 5 or 6 places
<?php $recent = new WP_Query("cat=1&showposts=3"); ?>So you will want to change the cat=1 to cat=x where x is your category ID for the posts you want displayed in the various sections.
does it show any breadcrumb images
That theme has a folder of recommended plugins so you have to install that ‘older’ version of the Breadcrumb Nav plugin.
If you use the current Breadcrumb Navt plugin, you will need to fix the theme to use the correct functions:
e.g. change breadcrumb_nav_xt_display() to bcn_display()So you will want to change the cat=1 to cat=x where x is your category ID for the posts you want displayed in the various sections.
Thanks, I have just set a category so posts show up, and it works.
That theme has a folder of recommended plugins so you have to install that ‘older’ version of the Breadcrumb Nav plugin.
I uninstalled the upgraded version and reinstalled the recommended plugins, without upgrading it. Do I still need to put
bcn_display()
in? Because by reinstalling the old plugings (recommended plugins), the images do not show.
Thank you for your help.
[moderated–bump removed. Please refrain from bumping as per Forum Rules]
To get the Breadcrumb Navt links I had to change breadcrumb_nav_xt_display() to bcn_display()
Not sure about the icon thing you mention.
Where can I find that from, which file is it in?
It was at least in that theme’s index.php.
Get http://wingrep.com and use that to search that theme folder for “breadcrumb_nav_xt_display”
Does it take the breadcrumb image automatically from the post?
There must be something wrong with my code:
index.php
<?php $temp_query = $wp_query; ?> <?php get_header(); ?> <div id="content"> <?php if (function_exists ('breadcrumb_nav_xt_display')) { if (!is_home()) { echo '<div class="breadcrumb">'; bcn_display(); echo '</div>'; } } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><a href="<? php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title (); ?></a></h1> <div class="entry"> <?php the_content("<br />Read more..."); ?> </div> <div style="clear:both;"></div> <div class="postmeta"> <span class="post-author"><?php the_author(); ?></span> <span class="post-calendar"><?php the_time('j F Y'); ?></span> <span class="post-category"><?php the_category(', '); ? ></span> <?php if (function_exists('the_tags')) : ?> <?php the_tags('<span class="post-tag">', ', ', '</span>'); ?> <?php endif; ?> <span class="post-comment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span> <?php if ($user_ID) : ?> <span class="post- edit"><?php edit_post_link(__ ('Edit',TEMPLATE_DOMAIN),'',''); ?></span> <?php endif; ?> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php if (function_exists('wp_pagenavi')) : wp_pagenavi(); else : ?> <div class="alignleft"><?php next_posts_link ('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> <hr class="clear"/> <?php endif; ?> </div> <?php else : ?> <div class="post"> <h2 class="headtitle center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <center><?php include (TEMPLATEPATH . "/searchform.php"); ?></center> </div> <?php endif; ?> </div><!--/content --> <?php get_sidebar(); ?> <?php get_footer(); ?>You need to REPLACE all instances of breadcrumb_nav_xt_display…
Did that here, to no avail.
<?php $temp_query = $wp_query; ?> <?php get_header(); ?> <div id="content"> <?php if (function_exists('bcn_display')) { if (!is_home()) { echo '<div class="breadcrumb">'; bcn_display(); echo '</div>'; } } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> <div class="entry"> <?php the_content("<br />Read more..."); ?> </div> <div style="clear:both;"></div> <div class="postmeta"> <span class="post-author"><?php the_author(); ?></span> <span class="post-calendar"><?php the_time('j F Y'); ?></span> <span class="post-category"><?php the_category(', '); ?></span> <?php if(function_exists('the_tags')) : ?> <?php the_tags('<span class="post-tag">', ', ', '</span>'); ?> <?php endif; ?> <span class="post-comment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span> <?php if ($user_ID) : ?> <span class="post-edit"><?php edit_post_link(__('Edit',TEMPLATE_DOMAIN),'',''); ?></span> <?php endif; ?> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else : ?> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> <hr class="clear"/> <?php endif; ?> </div> <?php else : ?> <div class="post"> <h2 class="headtitle center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <center><?php include (TEMPLATEPATH . "/searchform.php"); ?></center> </div> <?php endif; ?> </div><!--/content --> <?php get_sidebar(); ?> <?php get_footer(); ?>This might help, do they get replaced after updating the breadcrumb plugins?
I upgraded it, code is as above, still no luck?
When I change all instances of that in all templates of that theme the breadcrumbs work and they seem to be working for you at least on the date archive I viewed.
Maybe there’s something I’m missing.
Would it be possible to paste the code of your file so I can replace mine with it and see if it works? There may be an error in mine. Since it doesn’t work here.
You mean this in index.php
<?php if (function_exists('bcn_display')) { if (!is_home()) { echo '<div class="breadcrumb">'; bcn_display(); echo '</div>'; } } ?>Use http://wingrep.com to find the other instances to change…
I’ve done all, here is a zipped version of my theme with that: http://www.alzahra.org.uk/indomagz_2
The topic ‘Indomagz 2.0’ is closed to new replies.