• Resolved gascagrasa89

    (@gascagrasa89)


    Hello, I have a blog and a simple page with blog posts based on ajax,

    how do i make posts to be delimited like this blog or by a simple white line in my simple page?

    [IMG]http://i67.tinypic.com/sqiexg.jpg[/IMG]

    My current page looks like this:

    [IMG]http://i64.tinypic.com/jz8pde.jpg[/IMG]

    and my repeater template is this:

    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?> <?php generate_do_microdata( ‘article’ ); ?>>
    <div class=”inside-article”>
    <?php
    /**
    * generate_before_content hook.
    *
    * @since 0.1
    *
    * @hooked generate_featured_page_header_inside_single – 10
    */
    do_action( ‘generate_before_content’ );
    ?>

    <header class=”entry-header”>
    <?php
    /**
    * generate_before_entry_title hook.
    *
    * @since 0.1
    */
    do_action( ‘generate_before_entry_title’ );

    the_title( sprintf( ‘<h2 class=”entry-title” itemprop=”headline”>‘, esc_url( get_permalink() ) ), ‘</h2>’ );

    /**
    * generate_after_entry_title hook.
    *
    * @since 0.1
    *
    * @hooked generate_post_meta – 10
    */
    do_action( ‘generate_after_entry_title’ );
    ?>
    </header><!– .entry-header –>

    <?php
    /**
    * generate_after_entry_header hook.
    *
    * @since 0.1
    *
    * @hooked generate_post_image – 10
    */
    do_action( ‘generate_after_entry_header’ );

    if ( generate_show_excerpt() ) : ?>

    <div class=”entry-summary” itemprop=”text”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>

    <?php else : ?>

    <div class=”entry-content” itemprop=”text”>
    <?php
    the_content();

    wp_link_pages( array(
    ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘generatepress’ ),
    ‘after’ => ‘</div>’,
    ) );
    ?>
    </div><!– .entry-content –>

    <?php endif;

    /**
    * generate_after_entry_content hook.
    *
    * @since 0.1
    *
    * @hooked generate_footer_meta – 10
    */
    do_action( ‘generate_after_entry_content’ );

    /**
    * generate_after_content hook.
    *
    * @since 0.1
    */
    do_action( ‘generate_after_content’ );
    ?>

    </div><!– .inside-article –>

    </article><!– #post-## –>

    Can you please help me?

    • This topic was modified 3 months, 1 week ago by  gascagrasa89.
    • This topic was modified 3 months, 1 week ago by  gascagrasa89.
    • This topic was modified 3 months, 1 week ago by  gascagrasa89.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author dcooney

    (@dcooney)

    Hi @gascagrasa89
    Sorry, I’m not quite sure what you are asking by delimited.

    I think you probably need a wrapper class.
    Can you send me a link to your current site with the layout you want?

    hi @dcooney

    i am trying to make this page http://abou7.com/blog, look like the main page http://abou7.com

    To have some colour between posts or a white line something to make the user feel like there are multiple posts and not a long conversation.

    Plugin Author dcooney

    (@dcooney)

    Thanks,
    Your Repeater Template is not set up correctly and the template you added the shortcode too has the .inside-article class which should be on each item, not the wrapper.
    https://www.dropbox.com/preview/Screenshots/Screenshot%202019-04-11%2014.00.55.png

    Remove the article and .inside-article class remove before Ajax Load More.
    Also, stop using Masonry, you dont need it for your layout.

    i cannot seee the dropbox photo.

    so like this?:

    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?> <?php generate_do_microdata( ‘article’ ); ?>>

    <?php
    /**
    * generate_before_content hook.
    *
    * @since 0.1
    *
    * @hooked generate_featured_page_header_inside_single – 10
    */
    do_action( ‘generate_before_content’ );
    ?>
    <div class=”inside-article”>
    <header class=”entry-header”>
    <?php
    /**
    * generate_before_entry_title hook.
    *
    * @since 0.1
    */
    do_action( ‘generate_before_entry_title’ );

    the_title( sprintf( ‘<h2 class=”entry-title” itemprop=”headline”>‘, esc_url( get_permalink() ) ), ‘</h2>’ );

    /**
    * generate_after_entry_title hook.
    *
    * @since 0.1
    *
    * @hooked generate_post_meta – 10
    */
    do_action( ‘generate_after_entry_title’ );
    ?>
    </header><!– .entry-header –>
    </div><!– .inside-article –>
    <?php
    /**
    * generate_after_entry_header hook.
    *
    * @since 0.1
    *
    * @hooked generate_post_image – 10
    */
    do_action( ‘generate_after_entry_header’ );

    if ( generate_show_excerpt() ) : ?>
    <div class=”inside-article”>
    <div class=”entry-summary” itemprop=”text”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>
    </div><!– .inside-article –>
    <?php else : ?>
    </div><!– .inside-article –>
    <div class=”inside-article”>
    <div class=”entry-content” itemprop=”text”>
    <?php
    the_content();

    wp_link_pages( array(
    ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘generatepress’ ),
    ‘after’ => ‘</div>’,
    ) );
    ?>
    </div><!– .entry-content –>
    </div><!– .inside-article –>
    <?php endif;

    /**
    * generate_after_entry_content hook.
    *
    * @since 0.1
    *
    * @hooked generate_footer_meta – 10
    */
    do_action( ‘generate_after_entry_content’ );

    /**
    * generate_after_content hook.
    *
    * @since 0.1
    */
    do_action( ‘generate_after_content’ );
    ?>

    </article><!– #post-## –>

    • This reply was modified 3 months, 1 week ago by  gascagrasa89.
    Plugin Author dcooney

    (@dcooney)

    Oh weird. I thought Dropbox screenshots were public. Guess not.

    Anyways your issue is the containers surrounding Ajax Load More.
    Looks like you changed your Repeater Template.

    Please open a support ticket and I can fix this for you.

    thanks.

    Hey, good morning.

    Sorry for the late reply, i did not have access to internet this weekend. I opened a support ticket right now.

    Thank you for helping me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.