• Resolved ocpplus

    (@ocpplus)


    Am trying to remove popular posts on homepage Each time I remove the code for the popular posts it makes the remaining “recent” posts create big spaces. Theme is Technical speech.

    I don’t understand why removing this bit of code causes remaining excerpts to look bad.

    <div class="contentbox">
    						<div class="boxheading"><span>popular</span><div class="clear"></div><div class="left"></div></div>
    						<div class="blockborder" id="pop_border">
    							<?php popularPosts(); ?>
    							<div class="clear"></div>
    						</div>
    					</div>
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ocpplus

    (@ocpplus)

    Sorry have to bump this, becoming urgent.

    i don’t see any big spaces in your posted link.

    can you link to a post/page with the problem; or create the problem first, for someone to be able to make a suggestion.

    Thread Starter ocpplus

    (@ocpplus)

    Hi alchymyth, have now made it show gaps. I believe it may be something to do with the js_functions??

    [Code moderated as per the Forum Rules. Please use the pastebin]

    it has something to do with the different heights of the posts and the float: left;

    the theme does not seem to add a style to clear every first post per row.

    the js seems to match all posts to a common height.
    (seems to be acting on #pop_border ?)

    how did you remove the ‘popular posts’ ?

    Thread Starter ocpplus

    (@ocpplus)

    Have simply <!– example –> around the popular posts code.

    i assume that the js ‘looks’ for a div with the id #pop_border

    can you edit the js?

    try and replace:

    $('#pop_border .postblock').each(function(index) {

    with:

    $('#rcp_border .postblock').each(function(index) {

    Thread Starter ocpplus

    (@ocpplus)

    I believe you helped me last time, you’re a genius alchymyth, thank you so much! Send me a pm or contact me through the site and will send you some paypal money! Will close this as resolved. Cheers mate.

    thanks – simply click on my username; it is linking to my site 😉

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Removing popular posts’ is closed to new replies.