-
AuthorPosts
-
February 19, 2020 at 6:52 pm #1186146
Hi Support,
I would like some help with the blog display page. Please see URL below. Notice how the blog post headlines are displayed on this page. There is a large box around the text link. I really want to remove the large box around the link or reduce it vertically. I have tried all the other settings and cannot affect it.2) Also, I want to sort these articles in A-Z alphabetical order. https://dev.lonestarlandlaw.com/category/asset-protection/
Can’t find a way.Thanks,
KeithFebruary 22, 2020 at 6:32 pm #1186993Hey Keith,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:h2.post-title.entry-title { padding: 0px !important; }
To sort the results please try adding this code to the end of your functions.php file in Appearance > Editor:
add_filter( 'pre_get_posts', 'custom_get_posts' ); function custom_get_posts( $query ) { if( is_category() || is_archive() ) { $query->query_vars['orderby'] = 'name'; $query->query_vars['order'] = 'ASC'; } return $query; }
Best regards,
MikeFebruary 24, 2020 at 4:05 pm #1187381Hi Mike,
Thanks for looking at this. However, the code below did not affect anything on this page https://dev.lonestarlandlaw.com/articles/h2.post-title.entry-title {
padding: 0px !important;
}Best,
KeithFebruary 24, 2020 at 5:44 pm #1187434Hi,
Did you add the code to the very top of quick css so it runs first? Also, clear the cache a few times over.
Best regards,
Jordan ShannonFebruary 24, 2020 at 6:31 pm #1187467Hi Jordan,
I moved to the top of the quick css. Also cleared browser cache multiple times and checked with multiple times with different browsers. Still the same result.
Note: No caching plugin installed.Thanks,
KeithFebruary 25, 2020 at 11:12 am #1187645Hi,
Perhaps I was looking at the wrong link, I was looking at /asset-protection/ but now I think you want the masonry boxes at /articles/ removed.
So do you still want a grid layout, excerpt each box is 100px height?Best regards,
MikeFebruary 25, 2020 at 2:18 pm #1187690Hi Mike,
This is correct. I think the grid layout is OK . If we can reduce the grey box down or remove it would be the goal.Thank You,
KeithFebruary 26, 2020 at 11:28 am #1188024Hi,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#top.page-id-344 .av-masonry-entry { max-height: 100px !important; }
I added the page ID thinking it was for one page only, but you can remove it if you wish.
Best regards,
MikeMarch 5, 2020 at 7:38 pm #1190597Thank you, Mike. This is working for me now.
Best Regards,
KeithMarch 5, 2020 at 7:56 pm #1190609Hi,
Did you need additional help with this topic or shall I close?
Best regards,
Jordan ShannonMarch 5, 2020 at 8:07 pm #1190616Hi Jordan,
You may close it.
Thank You,
KeithMarch 5, 2020 at 11:17 pm #1190694Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Help with blog settings and sorting’ is closed to new replies.