-
AuthorPosts
-
December 15, 2015 at 5:46 pm #553188
HI,
is there a way to change the post date on top of the magazine entries to the actual subheading of that entry? I am using the portfolio entries for events (which in my case works much better and is more customizable than the events plugin). It would be great to show the date of the event above the title.This would be wonderful. Thanks very much in advance.
Anne
December 18, 2015 at 3:33 am #554788Hey garnschuh!
Thank you for using Enfold.
It would be great to show the date of the event above the title.
The date is located on top of the title by default. What do you mean by “subheading”?
Best regards,
IsmaelDecember 18, 2015 at 9:09 am #554868HI Ismael,
thanks for your reply. As of now, the magazine entry shows the title and above that title the date when this portfolio entry was posted. However, I need it to show the date of the event. Now here comes the tricky part: (please click one of the magazine entries to see the complete portfolio entry – that way you will understand what I am talking about;-) I used the special header for creating the headline of the event and there used the subheading for the date of the event. Now the question is: what can I do so the magazine entry on the homepage (or where ever) does not pull the “date posted” but the text stated in the subheading of the portfolio entry. I assume you can do this with shortcode but I have no idea what that would look like and where to put it.
Maybe this is not possible the way I hope for. Then the question is: do you have any idea how this could be done (have the date of the event showing in the magazine entry)? Worst case would be to justnot shown the “date posted” above the title in the magazine entry.
Hope you can help.
Thanks,
anneDecember 20, 2015 at 9:04 pm #555660HI,
after 5 days waiting for a halpful response I feel a bit disappointed. You surely must have an idea on what to do here, with such a team around.I would love to hear from you.Thanks,
AnneDecember 26, 2015 at 6:50 pm #557471Hi!
Maybe you can find a plugin which provides you the functions you need, but if not it would require a huge amount of time and customization of the theme and that is why you would need to hire a freelance developer for this job.
Regards,
AndyDecember 30, 2015 at 7:04 pm #558531HI There,
I researched a bit more and came up with the idea to put the event dates as excerpt. There is a thread where you provided the code that needs to be changed in order to show the excerpt on all magazine posts: https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list/
This works perfect (I’ll have to use a child theme I suppose, to keep this).The only thing left is that it is a bit confusing showing both the posting date and the event date. What else is necessary to not show the posting date above the title anymore but only title and excerpt?
Thnaks very much.
Anne
January 2, 2016 at 8:32 pm #558881Hey!
You can try use the following
.main_color .av-magazine-time { display: none !important; }
and let us know if that hides the time, in the area you want.
Cheers!
BasilisJanuary 4, 2016 at 3:12 pm #559214Hey Basilis,
thanks a lot. It works!
With the help of this thread ( https://kriesi.at/support/topic/events-in-ascending-order/ ), I was even able to sort the posts, so that the most recent is on top (just changed it to ascending order).Therefore, I edited the posting date to exactly one year before the event. So the oldest comes first.Now it works perfectly as an upcoming events list.One more questions though concerning the magazine showing the excerpts (as event dates). For this I had to edit magazine.php and was hoping I could put the file into the child theme, so I won’t lose the changes on a theme update. This did not work. Is there a special trick or is this just not working in this case since the original file is not placed directly in the theme folder?
Thanks a lot for your advise.
AnneJanuary 4, 2016 at 9:13 pm #559475Hey!
refer to this post: https://kriesi.at/support/topic/child-theme-using-magazine-php-doesnt-take-over-partent-themes-magazine-php/
Best regards,
AndyJanuary 6, 2016 at 12:49 pm #560455HI!
Thanks for your reply.
I did as decribed (at least that’s what I think;-) but when I want to activate the child theme I get this syntax error:
Parse error: syntax error, unexpected end of file in /homepages/7/d520157044/htdocs/clickandbuilds/Perspektivschmiede/wp-content/themes/Perspektivschmiede/functions.php on line 22 (this is the very last line)
and cannot figure out what the problem is. Can you help?Here is the functions.php code:
<?php
/*
* Perspektivschmiede theme functions file.
*///set the child theme folder that contains the modified shortcodes and make sure, it is the first element
function add_child_shortcode_folder($paths)
{
if(! is_array( $paths ) )
{
$paths = array();
}$child_path = array(dirname(__FILE__) .”/config-templatebuilder/avia-shortcodes/”);
$paths = array_merge($child_path, $paths);
return $paths;
}add_filter(‘avia_load_shortcodes’,’add_child_shortcode_folder’, 1000);
Thanks a lot,
AnneJanuary 6, 2016 at 12:53 pm #560460`<?php
/*
* Perspektivschmiede theme functions file.
*///set the child theme folder that contains the modified shortcodes and make sure, it is the first element
function add_child_shortcode_folder($paths)
{
if(! is_array( $paths ) )
{
$paths = array();
}$child_path = array(dirname(__FILE__) .”/config-templatebuilder/avia-shortcodes/”);
$paths = array_merge($child_path, $paths);
return $paths;
}add_filter(‘avia_load_shortcodes’,’add_child_shortcode_folder’, 1000);
- This reply was modified 8 years, 10 months ago by garnschuh. Reason: Trying to get the hirarchy of the code, but it won't work
January 6, 2016 at 2:27 pm #560514Hi!
Can you please try adding
?>
to the end of the file and check if that helps?
Regards,
YigitJanuary 6, 2016 at 9:43 pm #560772HI,
thanks for your reply. Unfortunately, I still get the same error.
It works fine with an “empty” functions.php but when the code is added, it does not work anymore.Can you havwe another look?
Thanks very much,
AnneJanuary 7, 2016 at 8:45 pm #561487Hey!
can you provide us admin access please? post it here as private reply.
Cheers!
AndyJanuary 7, 2016 at 11:15 pm #561590January 8, 2016 at 12:28 am #561658Hey!
I added the code to functions.php file of your child theme and then activated child theme and it did not throw any errors. Can you please try activating child theme now?
Cheers!
YigitJanuary 8, 2016 at 9:49 am #561860Hi Yirgit,
Thnaks a lot for your help. It works! I don’t know what caused the error!
Anyways, here is the correct functions.php code below in case someone needs it.Cheers!
AnneJanuary 8, 2016 at 9:50 am #561861<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ function add_child_shortcode_folder($paths) { if(! is_array( $paths ) ) { $paths = array(); } $child_path = array(dirname(__FILE__) ."/config-templatebuilder/avia-shortcodes/"); $paths = array_merge($child_path, $paths); return $paths; } add_filter('avia_load_shortcodes','add_child_shortcode_folder', 1000);
January 8, 2016 at 1:24 pm #561928 -
AuthorPosts
- The topic ‘How to change magazine entries to show subheading instead of post date’ is closed to new replies.