Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1496684

    Hello,
    I would like to modify the appearance of articles category pages but I do not know how to do it.
    Here is one example of how it looks now:

    I would like to make the following changes:
    – eliminate the article category name which appears over the title of each article
    – show a photo of the article under the title
    – turn the summary text into italics
    – possibly have the first few lines of the article appear below the summary and before the “continua a leggere” button

    Can you help?
    Credentials attached if needed.
    Thank you. Best regards,
    Elena

    #1496688

    Hey elenagrassi,

    Thank you for the inquiry.

    Looking at the site, the blog is using the elegant style. You can add the following code to the Enfold > General Styling > Quick CSS:

    To hide the category label above the title:

    
    .archive .av-heading-wrapper .blog-categories {
        display: none;
    }
    

    To make the excerpt text italic:

    
    .archive .entry-content-wrapper .entry-content p {
        font-style: italic;
    }
    

    To show the featured image below the title, try to adjust the Enfold > Blog Layout > Blog Layout and Blog Styling settings.

    Regarding showing the first few lines of article content before the “Continua a leggere” button — looking at the category page, the excerpt is already showing. If you want to show the whole content, you’ll have to modify the theme files.

    Please make sure to purge the cache before testing.

    Best regards,
    Ismael

    #1496698

    Hi Ismael,
    thank you for the reply.
    I have added the css. The text turns into italics but the category does not disappear. I have also deflagged the option to show the category in the Blog Layout section. The category actually does not appear if I turn the general blog style into default. But it shows if I use “elegant”.
    About the photo, the single article style is set to “single post with small featured image”, but the image does not show in the category page, whatever blog style I use. It shows in the article page, though it is not small but normally quite large. I can see no other settings attaining to images in the Blog Layout section.

    The excerpt that is showing at present is the summary text (the text added in the summary box at the bottom of the article page in the back end). I was wondering if it was possible to show a few lines of the article text itself after the summary, not the whole text.

    Best regards,
    Elena

    #1496746

    Hi,
    To show the post featured image on the category pages, I added this to your child theme functions.php file:

    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-big';
    return $layout;
    }
    

    As for your excerpts, right now you are using manual excerpts, what you call the summary box at the bottom of the article page, when these are used the auto excerpts are disabled, so you can’t have both. You could add more text to the manual excerpts if you wish.

    Best regards,
    Mike

    #1496750

    Hi Mike,
    thanks for adjusting the functions file to show the images. That is fine.

    About the excerpts: so you mean if I do not put any text in the summary box then an excerpt of the article text itself should be shown? (what you call auto excerpts). I have tried that, but if I leave the summary box empty, then no text at all is shown. Just want to make sure I understand how that works.

    Best regards,
    Elena

    #1496751

    Hi,

    Thank you for the update.

    The excerpts are not showing automatically because the posts are built using the Advanced Layout Builder. You have to switch to the default editor in order to pull excerpts from the post content.

    Best regards,
    Ismael

    #1496759

    Thank you for the explanation.
    That is all. Problem solved.
    Best regards,
    Elena

    #1496767

    Hi,

    Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Changing the article category page’ is closed to new replies.