-
AuthorPosts
-
October 14, 2019 at 4:41 pm #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
October 16, 2019 at 9:08 pm #1148668Hey 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,
BasilisOctober 17, 2019 at 11:51 am #1148891Ah,
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.Thanks
Tim
October 21, 2019 at 11:17 am #1149809Hi tjswarbs78,
For the blog layout, you might want to look at /enfold/includes/loop-index.php file.
Best regards,
VictoriaOctober 22, 2019 at 1:38 pm #1150183Hi,
index-loop.php did the trick. Custom Field now shows in the blog meta.
How about the rss widget?Thanks
TJ
October 23, 2019 at 7:07 pm #1150584Hi TJ,
The widgets are in this file
/enfold/framework/php/class-framework-widgets.phpIf you need further assistance please let us know.
Best regards,
VictoriaNovember 5, 2019 at 7:22 pm #1154055Hi Victoria,
That would make sense :’)
**UPDATE**
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.
Thanks
TJ
- This reply was modified 5 years ago by tjswarbs78.
November 18, 2019 at 12:41 pm #1157844Hi,
The main support page shows the last person to comment was Rikard but no comment is seen on the thread?
Thanks
Tim
November 24, 2019 at 12:39 am #1159531Hi,
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,
MikeDecember 4, 2019 at 5:41 pm #1162673Cool,
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
December 4, 2019 at 8:05 pm #1162716Hi,
It looks like \enfold\functions-enfold.php line 348
get_the_time( $search_messages['time_format']
Best regards,
MikeDecember 5, 2019 at 12:46 pm #1162948Noice,
I’ll take a look.
Thanks
TJ
-
AuthorPosts
- You must be logged in to reply to this topic.