Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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,
    Keith

    #1186993

    Hey 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;
    }

    Found here

    Best regards,
    Mike

    #1187381

    Hi 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,
    Keith

    #1187434

    Hi,

    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 Shannon

    #1187467

    Hi 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,
    Keith

    #1187645

    Hi,
    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,
    Mike

    #1187690

    Hi 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,
    Keith

    #1188024

    Hi,
    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,
    Mike

    #1190597

    Thank you, Mike. This is working for me now.

    Best Regards,
    Keith

    #1190609

    Hi,

    Did you need additional help with this topic or shall I close?

    Best regards,
    Jordan Shannon

    #1190616

    Hi Jordan,
    You may close it.
    Thank You,
    Keith

    #1190694

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Help with blog settings and sorting’ is closed to new replies.