Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi. thanks for the reply.

    I created a child theme and was able to hack the code to force it to display only full posts.

    In the content.php file I made the following change:

    Original:

        if(is_single()) {
            the_content( sprintf(
                /* translators: %s: Name of current post. */
                wp_kses( esc_html__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'liana' ), array( 'span' => array( 'class' => array() ) ) ),
                the_title( '<span class="screen-reader-text">"', '"</span>', false )
                ) );
            wp_link_pages( array(
                'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'liana' ),
                'after'  => '</div>',
                ) );
        } else {
    
          the_excerpt();
            echo '<div style="clear:both"></div><a href="' . esc_url( get_permalink() ) . '" class="liana-blog-btn">'.esc_html__('Read more', 'liana').'</a>';
        }

    Edited:

     if(is_single()) {
            the_content( sprintf(
                /* translators: %s: Name of current post. */
                wp_kses( esc_html__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'liana' ), array( 'span' => array( 'class' => array() ) ) ),
                the_title( '<span class="screen-reader-text">"', '"</span>', false )
                ) );
            wp_link_pages( array(
                'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'liana' ),
                'after'  => '</div>',
                ) );
        } else {
    
            the_content();
            echo '<div style="clear:both"></div><a href="' . esc_url( get_permalink() ) . '" class="liana-blog-btn">'.esc_html__('Read more', 'liana').'</a>';

    This resolved the issue with only showing excerpts and not full posts. All posts are now being displayed as full posts as I will not be using excerpts on this website.

    This then gave me another issue to look at. The first post on the page is ‘sticky’ but it is picking up a blue background with a green bottom border from a CSS file somewhere.

    I added the following code to the Additional CSS editor:

    .sticky {
    	border-bottom: 1px solid;
    	border-color: #ffffff;
    	background-color: #ffffff;
    				}

    which then removed the blue background and the green border.

    • This reply was modified 7 months, 1 week ago by geoscotland.

    And within minutes of posting this I found the solution.

    As I am using the WordPress catlist to list the articles, the limit was set within WordPress and not this plug-in.

    For those that might do the same, the change can be made in the Settings List Category Posts. Then change the Number Of Posts to the value you need.

    Thanks again.

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