-
AuthorPosts
-
October 30, 2018 at 1:16 pm #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,
ThomasNovember 2, 2018 at 6:27 am #1029030Hey 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,
MikeNovember 5, 2018 at 2:35 pm #1029905Hi 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,
ThomasNovember 6, 2018 at 6:10 am #1030217Hi 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,
RikardNovember 6, 2018 at 8:54 am #1030287Hi 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
November 6, 2018 at 3:04 pm #1030405Hi,
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,
MikeNovember 7, 2018 at 10:32 am #1030785Hi 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
November 7, 2018 at 1:31 pm #1030849Hi,
When I take a look and your blog now, your categories are not showing.
Please see the screenshot in Private Content area.Best regards,
MikeNovember 7, 2018 at 3:43 pm #1030884Hi 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
November 7, 2018 at 7:23 pm #1030955Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Featured blog post image’ is closed to new replies.