Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #526496

    Hello,

    I display some articles with this code :
    [av_blog blog_type='taxonomy' categories='39' link='event-categories,75,74,73,76,77' blog_style='blog-grid' columns='3' contents='excerpt' content_length='content' preview_mode='custom' image_size='extra_large' items='15' offset='0' paginate='yes' custom_class='blocs-event']

    For each post I need one additional element: The category name witch will take place before the title and excerpt.
    and
    to change the display of the more-link link : I need an image instead of the text, how to do that ?

    Thank you
    Carosch

    #527002

    Hey carosch!

    Around line 143 in the /enfold/includes/loop-index.php file you can see where we display the title.

    echo $title;
    

    You can do this before it, https://developer.wordpress.org/reference/functions/get_the_category/, to display a category assigned to the post, though we are already displaying categories in the post meta information beneath the title.

    For the read more link, perhaps it would be better to do that with CSS. Send us a link to your page and take a screenshot highlighting your intentions so we can get a better idea.

    Cheers!
    Elliott

    #531860

    Hello,

    I think I have not very well explain my problem.

    In this page
    http://memorial-verdun.fr/tous-les-evenements/

    I want to display the categories witch belong the event juste before the event title.

    But only in this page

    I tried to add this css

    .blocs-event header.entry-content-header:before {
        content: '#_EVENTCATEGORIES';
        text-align: center;
        display: block;
    }

    but that display #_EVENTCATEGORIES, not the category name, it’s not interpreted

    Is there any way to add an élément in the “article blog” module ?
    Just in some cases like the events archive page ?

    Carosch

    #532807

    Hey!

    So your using the events calendar plugin? It’s kind of bordering on custom work but perhaps you could use this to display the event categories, https://theeventscalendar.com/function/tribe_get_event_categories/.

    Cheers!
    Elliott

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