Tagged: magazine element
-
AuthorPosts
-
February 12, 2015 at 11:28 pm #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
February 13, 2015 at 1:18 pm #395672Hi 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,
YigitFebruary 13, 2015 at 1:25 pm #395682Hey 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,
IsmaelFebruary 13, 2015 at 3:53 pm #395804Hi 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
February 13, 2015 at 5:34 pm #395898Another 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
February 15, 2015 at 11:07 am #396325Hey!
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,
IsmaelFebruary 15, 2015 at 7:52 pm #396456Thanks so much — that worked! Will just add dates manually to the events.
-
AuthorPosts
- The topic ‘Magazine Element – dates on selected categories?’ is closed to new replies.