Support » Theme: Liana » Errors after update to V1.1.0

  • geoscotland

    (@geoscotland)


    I had this theme installed and working where it would display the complete post for each article. After the update to v1.1.0 the website is now showing the Read More link and only displaying the short summary. I have checked the settings in the Settings > Reading > For each article in a feed, show – and it is set to Full Article.

    I have tried setting it at Summary, saving the setting and reloading the website, changing it back to Full Article, saving and reloading the website and it is still only displaying the summary.

    A second issue that may be related is the first post on the page is a ‘sticky’ post which should show an image (gallery of 1 image). This is not showing on the page but if you click on the Read More you see how the sticky post was displayed before the update.

    Again, I tried recreating the post with the image but it is still not displayed on the front page.

    • This topic was modified 6 months ago by  geoscotland.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author CreoTheme

    (@creotheme)

    Hi,

    Sorry for delay reply.

    The update was very simple, just for changing the hover effects in button.I think this update should not create any of your problem.

    You can check the excerpt of you post.

    geoscotland

    (@geoscotland)

    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 6 months ago by  geoscotland.
    Theme Author CreoTheme

    (@creotheme)

    Hi @geoscotland

    Great Work! I should named it edit, not hacked!
    Good to know you can manage the theme as your own choice.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Errors after update to V1.1.0’ is closed to new replies.