October 14, 2019 at 4:41 pm #1147871
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.
TJOctober 16, 2019 at 9:08 pm #1148668
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.
BasilisOctober 17, 2019 at 11:51 am #1148891
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)
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.
TimOctober 21, 2019 at 11:17 am #1149809
For the blog layout, you might want to look at /enfold/includes/loop-index.php file.
VictoriaOctober 22, 2019 at 1:38 pm #1150183
index-loop.php did the trick. Custom Field now shows in the blog meta.
How about the rss widget?
TJOctober 23, 2019 at 7:07 pm #1150584
The widgets are in this file
If you need further assistance please let us know.
VictoriaNovember 5, 2019 at 7:22 pm #1154055
That would make sense :’)
The RSS feed widgets isn’t found in there. The widget is this one in the backend…
And out puts a post title, date and author. I wish to add my custom field to the output.
November 18, 2019 at 12:41 pm #1157844
- This reply was modified 2 years, 2 months ago by tjswarbs78.
The main support page shows the last person to comment was Rikard but no comment is seen on the thread?
TimNovember 24, 2019 at 12:39 am #1159531
Sorry for the late reply, this is a WordPress widget, found at:
\wp-includes\widgets\class-wp-widget-rss.phpstarting on line 10.
You will notice if you activate the twentynineteen theme the same widget is available.
MikeDecember 4, 2019 at 5:41 pm #1162673
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?
TJDecember 4, 2019 at 8:05 pm #1162716
It looks like \enfold\functions-enfold.php line 348
MikeDecember 5, 2019 at 12:46 pm #1162948
You must be logged in to reply to this topic.