Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1317852

    Hi,
    I read Enfold documentation and still could not figure out how to edit the style of the category pages. I added to child functions.php
    `add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-small’;
    return $layout;
    }
    But it had no effect.
    I wish to remove some meta from the entries like author and comments cunt (editing Blog meta elements in theme options did not effect the category page) and display the feature image larger or full width.
    Is there better guidance on how to achieve these? Thank you

    #1317930

    Hey Yory,

    Thank you for the inquiry.

    There are no options for it by default, but we can use this css code to hide the author and comment meta info on the archive or category pages.

    .archive span.blog-author.minor-meta, .archive spam.comment-container.minor-meta {
        display: none !important;
    }
    

    Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code.

    Best regards,
    Ismael

    #1318713

    Thanks
    I added the css but still seeing meta of comments count and the category name with many slashes and extra spaces. any way to display only the date meta?
    Any way to change the featured image size?
    how do Enfold users style category pages? it can only be done by hand coding from scratch?

    #1318714

    How can I get the category page to look like the link below, a grid I created in the builder?
    I would redirect the default category page for this category to the page I created in the builder but I believe it is not a healthy SEO practice

    #1318886

    Hi,

    Thank you for the update.

    Did you toggle or emporarily disable the Enfold > Performance > File Compression settings after adding the css code?

    // https://kriesi.at/documentation/enfold/add-custom-css/#how-to-inspect-an-element-on-the-page

    Style and layout adjustments for the archive pages are currently limited and you cannot use the Advance Layout Builder (ALB), so you will have to modify the template files directly and adjust the styles manually. But yes, you could create a page using the ALB and do a redirect. We have not encountered any documentation or article, which says that doing a 301 redirect is a bad SEO practice.

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.