Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1027985

    Dear Kriesi Team
    We changed from a single post view to a grid post view. The layout is much more suitable for us and we like it a lot. We had to add a featured image for each post. To make the grid blog view having a preview image (the featured image).
    The result looks good to me: https://www.runmyaccounts.ch/blog/
    The problem is now that via a google search a visitor can possibly come to our website over the category link.
    For example over the link here: https://www.runmyaccounts.ch/category/run-my-accounts-news/
    If that happens the view of the posts is still single blog post and I don’t understand where I could possibly change that.
    In this single blog post view, the featured image is shown as well as our preview image. So, two similar pictures right after each other.
    How can I change that?

    Thanks and best,
    Thomas

    #1029030

    Hey tbraendle,
    Sorry for the late reply, if I understand your concern correctly, changing the page layout for archive / category pages would be a solution. To change the layout to a grid like on your blog page, Try adding this code to the end of your functions.php file in Appearance > Editor:

    //change category page layout to blog grid style
    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'blog-grid';
    return $layout;
    }

    For the issue with the two image for the same page, Please try this code in the General Styling > Quick CSS field:

    #top.archive .big-preview.single-big {
    display: none !important;
    }

    although this might not be a issue once you change the layout to the grid.

    Best regards,
    Mike

    #1029905

    Hi Mike
    Thanks a lot for your reply. The solution with the quick CSS works for us.
    I have another issue. The categories are shown below each title of your grid blog.
    In the general blog settings I can set ticks if I want them to be shown, but to tick oder untick them doesn’t change. The categories are still shown. I also tried with one input of this support page here to add
    span.blog-categories {
    display: none;
    }
    in quick CSS but also this one does not remove the categories shown below the title of each blog.
    Can you help me with this one?

    Best regards,
    Thomas

    #1030217

    Hi Thomas,

    That CSS should work to remove the categories, you CSS seems to be minified and/or cached. Could you try to remove/turn that off to see if that helps please?

    Best regards,
    Rikard

    #1030287

    Hi Rikard
    It works on a single post view. It does not work on the grid blog and also not when I go directly via category to a blog entry. The code is in our quick CSS. I cleared both the cache and the minifier. But it does not take away the categories. I do have another line of code in the CSS, this one works. So I believe it can’t be a collision between minifier and CSS.
    Here’s the link where you see the grid blog and the categories:

    Best regards, Thomas

    #1030405

    Hi,
    Please try this code in the General Styling > Quick CSS field:

    span.blog-categories.minor-meta {
    display: none !important; 
    }

    If this doesn’t work then perhaps there is an error in your Quick CSS, such as a missing bracket. We would be happy to take a look if you include a admin login in the Private Content area.

    Best regards,
    Mike

    #1030785

    Hi Mike,
    thanks for your message. I tried your css as well. Does not work either. The content in the quick CSS looks like this:

    #top.archive .big-preview.single-big {
    display: none !important;
    }
    span.blog-categories.minor-meta {
    display: none !important;
    }
    @media only screen and (max-width:767px) {
    .responsive #top #wrap_all #header {
    position: fixed !important;
    }

    The first and the third css code work all fine. The second doesn’t not. Though I believe it has much more to do with the grid blog than with the little code here.

    Best regards, Thomas

    #1030849

    Hi,
    When I take a look and your blog now, your categories are not showing.
    Please see the screenshot in Private Content area.

    Best regards,
    Mike

    #1030884

    Hi Mike
    Thanks a lot for your input.
    I made a bitter mistake. I cleaned the cache and also the minifier we have. But in the “preview page” I could still see the categories. When I then changed to the “real” view (the published view) the categories are gone. So I assume this came due to the cache of the browser I am working in. Or there is another cache that is being used at WordPress. I don’t know. What I know, it works now. Thanks a lot. My case is closed.

    Best regards, Thomas

    #1030955

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Featured blog post image’ is closed to new replies.