Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ronelld.regen

    (@ronelldregen)

    Great… it works. It seems to work at least.
    I think my child theme is a bit messed up due to cutomized php files and CSS changes. Eventually things could have been done by CSS hacks. However, I don’t really care bout that. It looks like it should look like.

    Thanks Bojan, great work and nice hints.

    But one last thing: How did you try the CSS with applying it to the website? I mean the screencast link above. Is it a page where you can add own CSS things to a page?

    Regards, Ronelld.

    Thread Starter ronelld.regen

    (@ronelldregen)

    Hey Bojan, nice snippet so far. Seems to work. Great.
    The only thing that is irritating is the sidebar (archives, recent posts, meta) printed at the bottom. The normal post pages do not show the sidebar. What is happening there? Is it another CSS hack?

    Thank you so far, great work man.
    Regards, Martin.

    Thread Starter ronelld.regen

    (@ronelldregen)

    Hey Bojan,
    no progress at all. I thought of playing around with custom CSS, but did not find anything that sounds good to me.

    The page is the following:
    http://design.praetz.net
    The search result page could look like:
    http://design.praetz.net/?s=blusen

    Thank you in advance.
    Kind regards, Ronelld.

    Thread Starter ronelld.regen

    (@ronelldregen)

    Hey again,
    finally I could fix the problem. The suggestion you made was not completely correct (in my opinion).

    I think it should be:

    if ( get_post_format() || post_password_required() || "Full content" == boldr_get_option('blog_index_shows') || ( is_sticky() && is_home() && !is_paged() ) == True ):
    	the_content();
    else:
    	the_excerpt();
    endif;

    And I added a part to filter out the sticky post from the normal blog page in the loop. Eventually it’s not the best coding style.

    if(have_posts()):
    	while(have_posts()) : the_post();
    		?><div id="post-<?php the_ID(); ?>" <?php post_class(); ?>><?php
    
    		if ( ( is_sticky() && is_paged() ) == False ):

    ?></div><br class="clear" /><?php
    		endif;

    So, at least it works for me so far. Thanks for your help.
    Kind Regards, Ronelld.

    Thread Starter ronelld.regen

    (@ronelldregen)

    Hey. Thanks for clearance.
    Another option for me, since I’m using a child theme, would have been to duplicate the index.php as home.php and only apply the is_sticky conditional for the home.php.

    I’ll have a look on that being back home.

    Regards, Ronelld.

    Thread Starter ronelld.regen

    (@ronelldregen)

    Hey there,
    you are completely right that it might not be a theme’s task. But there is something that confuses me: The second appearance is not only an excerpt, as it is for normal post. It is the complete post. I have the if stuff where I catch the is_sticky () property. And the “Full content” thing of the theme.

    I’ll have a look on the source later. But thank you so far.
    Regards, Ronelld.

    Thread Starter ronelld.regen

    (@ronelldregen)

    Okay, thank you so far.
    That definitely cleared things up, concerning why all that sticky post stuff appears.

    But what could be a recipe, to change that behaviour?

    Does the sticky post has the sticky property at any time? Or is this property only set for the first page (is_home()) and not in that chronological appearance?

    Thanks in advance.
    Regards, Ronelld.

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