Child theme a Advanced Custom Fields

Posted in: Newspaper
Post count: 23

HI Guys,

Since updating none of the ACF fields are displaying on the front end, the changes were made in my child theme to pages.php and loop-single.php.

Now I’ve updated I need to know where I can re-add the code?

David

Post count: 20688

Hi,

Note that the 9.7 update was a major update, it consists of modifications to the theme file structure, most of the files are now in the tagDiv composer plugin. Here is an article about the changes made and why they were made – https://tagdiv.com/updating-the-core-of-tagdiv-themes/

The loop single files are now here – http://prntscr.com/oau433 and the page templates here
http://prntscr.com/oau4p0
Modifying these files in a child theme will not work anymore unfortunately.

Let me know if you have more questions.
Thanks

Post count: 23

Is there anyway around this, like is there a possible solution where I can put the custom code into a widget and set to to appear at the bottom of page content?

Post count: 20688

Maybe the shortcode method would work, in a column text element
https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/
But you would have to edit each page and add the column text with the shortcode in it, manually.

Also manually, maybe it could work using a plugin that provides a widget that supports PHP code, for example – https://wordpress.org/plugins/safe-php-code-widget/
https://wordpress.org/plugins/code-widget/
Then place the widget in a sidebar and add a widget sidebar element in the composer, and select the respective sidebar.

Or ultimately modify the theme files in those locations, but after a theme update the modifications will be lost.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.