Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #553188
    #554788

    Hey 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,
    Ismael

    #554868

    HI 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,
    anne

    #555660

    HI,
    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,
    Anne

    #557471

    Hi!

    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,
    Andy

    #558531

    HI 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

    #558881

    Hey!

    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!
    Basilis

    #559214

    Hey 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.
    Anne

    #559475
    #560455

    HI!

    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,
    Anne

    #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, 3 months ago by garnschuh. Reason: Trying to get the hirarchy of the code, but it won't work
    #560514

    Hi!

    Can you please try adding

    ?>

    to the end of the file and check if that helps?

    Regards,
    Yigit

    #560772

    HI,

    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,
    Anne

    #561487

    Hey!

    can you provide us admin access please? post it here as private reply.

    Cheers!
    Andy

    #561590
    #561658

    Hey!

    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!
    Yigit

    #561860

    Hi 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!
    Anne

    #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);
    #561928

    Hey!

    You are welcome! Glad we could help!
    Thank you for sharing your code :)

    Best regards,
    Yigit

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘How to change magazine entries to show subheading instead of post date’ is closed to new replies.