WordPress Business Themes › Forums › Responsive Themes › Directory Theme › Directory Child Theme 9: Spartak (How to Add Code Manually inside Child Theme)
I successfully transferred my old listings to DT9. I am using ACF Pro to add multiple address of offices inside one listing using ACF Pro. Before with DT8, I used child theme and added a piece of code to call the ACF Pro fields inside the theme and it was working fine. Now after moving the website to DT9, I can’t add php code inside the child theme.
I asked the Support few days back, to add ACF Pro (Advanced Custom Fields) code manually inside the theme single-listing.php file inside DT9/_directory folder. Obviously editing main theme is not good. I installed a child theme.
I copied same file inside that child-theme inside same directory structure, i.e. child-theme/_directory/single-listing.php but it doesn’t work.
I copied inside child-theme direct directory i.e. child-theme/single-listing.php it doesn’t work.
Also tried with child-theme/_single-listing.php. No use.
I didn’t put any long code yet inside single-listing.php yet… Just putting HELLO to see if Child Theme loads the file or not.
I asked support again, the lady said to put inside the main theme single-listing.php (That’s not good)
I have tried same stuff with
[CHILD] 13. Gym & Fitness
but still same stuff. single-lisitng.php doesn’t load.
I think I have to wait for Child-Themes to get updated as well.
I managed to make ACF Pro work the using shortcode even with repeater field. So I don’t need to edit the child theme now. So now everything seems to be working fine now.
If anyone needs my help, ping me
thanks for updating.
Submit your feature requests to our ideas board and it could be included in a future theme update.
or contact our support team