Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #7097

    Hi – I would like to have the same layout for the blog as it is for the standard page:

    - Title

    – some text (no read more link, they only have some lines per post)

    – inline slideshow (they do have images though ;))

    – maybe some more lines of text

    All this should appear on the actual blog page, no linking to the individual post, so that in the end a long list of these posts can be scrolled through.

    How could I achieve this?

    Thanks for assistance.

    Rgs, Katharina

    #56614

    Hey,

    I think you want to display the ful content instead of excerpts for all posts. This is possible – open up includes/loop-index.php and replace:

    if(is_search() || avia_is_overview())
    {
    the_excerpt();
    }
    else
    {
    the_content(__('Read more →','avia_framework'));
    }

    with:

    if(is_search())
    {
    the_excerpt();
    }
    else
    {
    the_content();
    }

    #56615

    Thanks, Dude. Sorry for my delay in answering, I only had time now to check.

    Your suggestion does not work; no change at all.

    The result I want is as you described: on the blog page a list of x entries in full content including the inline-gallery and the date-flag; no click on title etc, all content is on the general blog page.

    You may view the site http://www.bonath-werbung.de/bisseria/ Bisseria is the general blog page.

    Hope you can assist further. Thanks in advance,

    best regards Katharina

    #56616

    …. and even if I follow Dude’s advice he gave justinbryear this morning regarding the full post on homepage – it does not work on the blog page.

    Would be so nice to find a solution. thanks in advance.

    #56617

    @ykblue

    Hi, how did you manage to have an image appear when you hover over the test post?

    #56618

    Related question: how do I make the blog overview page show the text up to the “more” code in the single post and not some mysterious excerpt at random length.

    And: how can I make the overview page respect the formatting of the text before the “more” code in the blog post?

    #56619

    @gouvi / image appearing when you hover the post

    In every single post you can set up a gallery; the image appearing on the list is the first one of the gallery

    @gouvi / text length in blog overview

    I just worked with the “more” line from the standard WYSIWYG editor

    #56620

    Hey,

    in your template-blog.php

    replace this:

    <!-- ####### MAIN CONTAINER ####### -->
    <div class='container_wrap' id='main'>

    <div class='container'>

    <div class='template-blog template-blog-overview content'>

    <div class='box'>

    <div class='inner_box'>

    <?php

    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    */
    $more = 0;
    get_template_part( 'includes/loop', 'index' );
    ?>
    </div><!--end inner_box-->

    </div><!--end box-->

    <!--end content-->
    </div>

    <?php

    //get the sidebar
    wp_reset_query();
    $avia_config['currently_viewing'] = 'blog';
    get_sidebar();
    ?>

    </div><!--end container-->

    by

    <!-- ####### MAIN CONTAINER ####### -->
    <div class='container <?php echo $avia_config['layout']." ".$protectedPost; ?>'>

    <div class='template-blog template-single-blog content'>

    <?php

    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    *
    */
    $loop = '';
    $content_style = avia_post_meta(avia_get_the_ID(), 'entry_layout');

    if(strpos($content_style,'mini') !== false)
    {
    $loop = 'page-mini';
    }
    else
    {
    echo "<div class='box'>";

    echo "<div class='inner_box'>";

    get_template_part( 'includes/loop', 'index' );

    //show related posts if there are any
    get_template_part( 'includes/related-posts');

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    echo "</div><!--end inner_box-->";

    echo "</div><!--end box-->";
    }

    ?>

    <!--end content-->
    </div>

    <?php
    if($loop) get_template_part( 'includes/loop', $loop );

    $avia_config['currently_viewing'] = "blog";
    //get the sidebar
    get_sidebar();

    ?>

    </div><!--end container-->

    This should display full excerpts.

    As for the other questions ykblue & gouvi- could you restate them? It’s getting confusing who wants what to happen.

    #56621

    Chris – thanks a lot. This brings me a bit closer to what customer wants. Now I do have the list of blog entries.

    But: I would like to have the pictures/galleries in this list as well. Clicking to the single blog entry should be impossible. Complete blog content should appear on this list.

    Thanks again, Katharina

    #56622

    yes – that’s possible. In includes/loop-index.php delete all occurences of:

    is_single() &&

    #56623

    Thanks for all your assistance.

    I just don’t get it working; actually I am not php-experienced enough to modify this loop-index.php properly.

    As this seems to be more a customization thing, I can’t ask for more support. Thanks again.

    #56624
    Quote:
    As for the other questions ykblue & gouvi- could you restate them? It’s getting confusing who wants what to happen.

    Yes, I specified my problem in a separate thread: http://www.kriesi.at/support/topic/more-code-except-length-and-formatting

    #56625

    Hi,

    the solution Chris offered works fine however the comments are still displayed on the usual single blog post only. Is there a way to solve this so that they are shown on the blog overview as well?

    Thank you in advance for your help!

    #56626

    It seems that

    >>//wordpress function that loads the comments template “comments.php”

    comments_template( ‘/includes/comments.php’); <<

    is ignored.

    It would be great to find a solution – or does moving the comments need further adjustments or customization?

    Thank you!

    #56627

    Sunny,

    you can open your includes folder and open up loop-index.php, find

    </div><!--end post-entry-->

    change it to

    <?php if(!is_single()){include( 'comments.php');}?>

    </div><!--end post-entry-->

    You’ll have to do some styling to get this to look somewhat decent though.

    Let me know if it works :)

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘Blog page same layout as normal page’ is closed to new replies.