Shailesh
Forum Replies Created
-
Forum: Themes and Templates
In reply to: CSS Help: Full Width Header and Footer, but Centered Content?If you post your site link here than it would be easy to solve…
Forum: Themes and Templates
In reply to: Background image is cut offTry to add <br clear=”all” /> before
<div id=”container”> closedEx:
——-
<div id=”container”>
…
…
…
<br clear=”all” />//Add this line here
</div>Forum: Themes and Templates
In reply to: help with alignment of side barChange in style.css for id div#content line : 48
float: left; margin: 0 0 0 70px; width: 385px;
Forum: Your WordPress
In reply to: my new colour printing websiteWorking link is here
[mod: link to non-WordPress site moderated]
Forum: Themes and Templates
In reply to: How to input query code in this index page?I think this is very easy fix i have do it….
<?php get_header(); ?> <!-- Begin Content --> <div id="content"> <?php global $query_string; query_posts( $query_string . '&order='.MostVotedAllTime(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="p-heading"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div> <div class="p-content"> <?php the_content('Read the rest of this entry ?'); ?> </div> <div class="p-info"><?php the_time('F jS, Y') ?> | <?php the_category(', '); ?> | <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('? Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div> <div class="clear"></div> </div> <?php else : ?> <div class="post"> <div class="p-heading"><h2 class="center">Not Found</h2></div> <div class="p-content"><p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?></div> </div> <?php endif; ?> </div> <!-- End Content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: template doesn't have blog templateThis is the single page template single post use this template to display.
You can use below code for your post and please study query_posts() function and use it.<?php if (have_posts()) : while (have_posts()) : the_post(); /* get permalink */ $permalink = get_permalink(get_the_ID()); ?> <!-- .post --> <div <?php post_class('clearfix') ?> id="post-<?php the_ID(); ?>"> <div class="post-image"><?php echo dox_get_post_image($post->ID, 'default-thumb', 'blog', false); ?></div> <!-- .post-container --> <div class="post-container grid_8 alpha"> <h3 class="blog-title"><?php the_title(); ?></h3> <div class="post-meta grid_2 alpha"> <!-- .post-meta-data --> <div class="post-meta-data"> <span class="posted"><?php the_time( get_option('date_format') ) ?></span> <span class="author"><?php the_author_posts_link(); ?></span> <span class="comment"><?php comments_popup_link(__('No comments', 'autotrader'), __('1 Comment', 'autotrader'), __('% Comments', 'autotrader')); ?></span> <span class="tags"><?php $tags = wp_get_post_tags($post->ID); if(! empty($tags)) { $tag_link = get_tag_link($tags[0]->term_id); echo '<a href="'.$tag_link.'">'.$tags[0]->name.'</a>'; } ?></span> </div><!-- .post-meta-data --> <!-- .social-buttons --> <div class="social-buttons"> <span class="twitter"><a href="https://twitter.com/share?url=<?php echo $permalink; ?>&text=<?php echo get_the_title(); ?>&via=<?php echo $dox_options['footer']['twitter']; ?>" class="twitter-share-button" data-count="horizontal"><?php _e('Tweet this article', 'autotrader'); ?></a></span> <span class="google"><div class="g-plusone" data-size="medium" data-href="<?php echo $permalink; ?>"></div></span> <span class="facebook"><div id="fb-root"></div><div class="fb-like" data-href="<?php echo $permalink; ?>" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div></span> <div class="clear"></div> </div><!-- end - .social-buttons --> </div> <!-- .post-data --> <div class="post-data grid_6 omega"> <div class="entry-content"> <?php the_content(); ?> </div> </div><!-- .post-data --> </div><!-- end - .post-container --> </div><!-- end - .post --> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php comments_template(); ?> <?php endwhile; endif; ?>
Forum: Themes and Templates
In reply to: template doesn't have blog templateIf your portfolio data will come from post than you can copy index.php code for get post.
Now if you have set category for portfolio than you can use query_posts() function.
https://codex.www.ads-software.com/Template_Tags/query_posts
Set function parameter as you required… and
Put this function before while loop.
Actually you want while loop from index.phpForum: Your WordPress
In reply to: my new colour printing websiteYour site link is broken.
Good looking site…Forum: Themes and Templates
In reply to: How to input query code in this index page?Backup your file and replace with this code may it work for you..
<?php get_header(); ?> <!-- Begin Content --> <div id="content"> <?php global $query_string; query_posts( $query_string . '&order=<?php MostVotedAllTime(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="p-heading"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div> <div class="p-content"> <?php the_content('Read the rest of this entry ?'); ?> </div> <div class="p-info"><?php the_time('F jS, Y') ?> | <?php the_category(', '); ?> | <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('? Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div> <div class="clear"></div> </div> <?php else : ?> <div class="post"> <div class="p-heading"><h2 class="center">Not Found</h2></div> <div class="p-content"><p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?></div> </div> <?php endif; ?> </div> <!-- End Content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: Smooth Pro theme cssOn your style.css replace .drop class with below code.
.drop { float: left; margin: 0 0 0 10px; }
Forum: Themes and Templates
In reply to: template doesn't have blog templateYes, you can copy code from original template.
And after than you can change HTML of this template as you required.Forum: Networking WordPress
In reply to: Multisite database queryNot. Yes, eventually you’ll need a bigger server, and a better DB, but WordPress.com is running Multisite. It’s okay ??
Here, what you mean by better DB. Please help me.
I am using mysql database..
Is there any number of tables limit per database?Forum: Themes and Templates
In reply to: template doesn't have blog templateCreate new empty php file for your template.
You can use below code on top of this empty file./** * Template Name: Your Template Name Here **/
After than you can do your custom code as you wish…
Forum: Themes and Templates
In reply to: template doesn't have blog templateYou mean theme….?
Template means new theme for blog??Forum: Plugins
In reply to: Login in HeaderAlso u can use plugins for this….