stug2013 on "[Theme: Hueman] seem to have lost related posts"

ساخت وبلاگ

Give this a try:
1. Create your dynamic widgets (sidebars) and note the unique ids.
2. Add the widgets to the sidebars.
3. Copy index.php to your child theme.
4. Add the calls for the dynamic sidebars, using the unique ids, below the featured posts line:

<?php if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?>
<?php dynamic_sidebar( 'hu_sidebars_10' ); ?>
<?php dynamic_sidebar( 'hu_sidebars_11' ); ?>
<?php if ( have_posts() ) : ?>

5. The sidebars will be stacked at 100% width. You can use some css to space them top and bottom if needed. If you want them side-by-side, use something like this:

/* dynamic sidebars side-by-side */
.home .content .widget { float: left; margin: 10px 0 20px 1%; width: 48%;
}

6. To set the posts to 3 columns, in this line in index.php:

<?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>

Change ($i % 2 == 0) to ($i % 3 == 0)

7. Add this custom css:

.home .post-list .post {
width: 33%;
}

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 105 تاريخ : شنبه 11 ارديبهشت 1395 ساعت: 7:21