Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #395406

    Hi —

    I found some code on the forum for removing the display date from the magazine element which worked perfectly. However, is it possible to remove data from some portfolio categories only? E.g. i am using it to display news one place and events another. For news it is ok to show published date but for events the dates are in the future so publish date does not work.

    Also — if not possible i’ll just keep with no dates and add dates to the heading instead, however when the dates are removed the heading gets moved up — is there some quick CSS code i can add to align it in the middle of the thumbnail?

    Thank so much – Yanna

    #395672

    Hi squard!

    You can use following code and display the date on standart post type

    .av-magazine-format-standard .av-magazine-time {
    display: block !important;
    }

    Regards,
    Yigit

    #395682

    Hey squard!

    Thank you for using Enfold.

    Are you using different magazine element for news and events? Please give us a link to the actual page.

    Regards,
    Ismael

    #395804

    Hi Thanks for your reply,

    Here are links to the news and events pages… on the news page i want to display the published date (have removed for now and added date to title instead). On the events page i would like to include the dates of the actual event, not the published date. We have more news than events so would be optimal to include the publish date to those, but remove from events and just add dates to the title. Maybe i’m just using the wrong element, but like the way display of the magazine element.

    http://www.fitforcommerce.com/worp/news-events/news/
    http://www.fitforcommerce.com/worp/news-events/events/

    Thx – Y

    #395898

    Another quick question — how can i remove the next/previous navigation in the portfolio? I found articles on the forum about changing the categories but couldn’t find something about completely removing them.

    Thx – Y

    #396325

    Hey!

    If you want to show the date only for the “news” category, edit config-templatebuilder > avia-shortcodes > magazine.php. Look for this code:

    $time = get_the_time(get_option('date_format'), $entry->ID);
    

    Replace it with:

    if(has_term('news', 'portfolio_entries', $entry->ID))$time = get_the_time(get_option('date_format'), $entry->ID);
    

    If you’re using the “news’ category for news portfolio items, leave the term as it is. If not, replace it with the proper term or portfolio category name. Unfortunately, you can’t show the actual event date without proper modification on the theme. You can add custom fields then edit the same file.

    Best regards,
    Ismael

    #396456

    Thanks so much — that worked! Will just add dates manually to the events.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Magazine Element – dates on selected categories?’ is closed to new replies.