Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1147871

    Hi,

    Is there a document or thread somewhere that links a php file to an element?
    Over the last year I’ve begun customising Enfold and each time I want to change some php I have to raise a ticket asking which file to ammend.
    The lastest change was to add a reading time to the blog elements when displayed in a grid. To do this I had to edit the postslider.php.
    That to me doesn’t seem intuitive. I was looking for a php file called blog or grid or bloggrid.

    I now want to edit the standard blog layout so that I can pull custom fields into it. The section is the post-meta-info. Is that controlled by its own php file or within another file somewhere?

    What do the php files in the folders below do?
    config-templatebuilder\avia-shortcode….. do these create the elements in the backend editor?
    frameword\php…. what do these all do, broadly speaking, not individually
    includes…. what do they these do?

    Not only do I want to change the blog page I also want to change widgets so knowing which php file does what will be handy.

    Hope that makes sense.

    Thanks

    TJ

    #1148668

    Hey TJ,

    Unfortunately we do not have such type of documentation. mostly the shortcodes are what can be changed from a child theme although so those are the files that you also care the most.

    Best regards,
    Basilis

    #1148891

    Ah,
    Worth a try I’ll just keep reviving this topic when I need to ask.

    I’m using the Multi Author Blog layout and want to tweak the meta info that appears and add a custom field (see image below)
    meta info tweak

    Which php file needs tweaking?

    I’m also after adding the same custom field to the rss widget. Which php file needs tweaking?
    Can’t screen shot that as contains sensitive info.

    Thanks

    Tim

    #1149809

    Hi tjswarbs78,

    For the blog layout, you might want to look at /enfold/includes/loop-index.php file.

    Best regards,
    Victoria

    #1150183

    Hi,

    index-loop.php did the trick. Custom Field now shows in the blog meta.
    How about the rss widget?

    Thanks

    TJ

    #1150584

    Hi TJ,

    The widgets are in this file
    /enfold/framework/php/class-framework-widgets.php

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1154055

    Hi Victoria,

    That would make sense :’)

    **UPDATE**

    The RSS feed widgets isn’t found in there. The widget is this one in the backend…

    rss feed

    And out puts a post title, date and author. I wish to add my custom field to the output.

    Thanks

    TJ

    • This reply was modified 5 years, 1 month ago by tjswarbs78.
    #1157844

    Hi,

    The main support page shows the last person to comment was Rikard but no comment is seen on the thread?

    Thanks

    Tim

    #1159531

    Hi,
    Sorry for the late reply, this is a WordPress widget, found at: \wp-includes\widgets\class-wp-widget-rss.php starting on line 10.
    You will notice if you activate the twentynineteen theme the same widget is available.

    Best regards,
    Mike

    #1162673

    Cool,

    Thanks everyone for the pointers so far. Managed to remove the dates and add in my custom field data instead. Found another date I want gone though. The ajax search from the menu also displays a date.
    Which php file needs tweaking?

    Thanks

    TJ

    #1162716

    Hi,
    It looks like \enfold\functions-enfold.php line 348
    get_the_time( $search_messages['time_format']

    Best regards,
    Mike

    #1162948

    Noice,

    I’ll take a look.

    Thanks

    TJ

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