Adding custom PHP code to show up on posts (while using Cloud Library templated)

Posted in: Newspaper
Post count: 11

Hello Guys,

We are using some custom Cloud Library templates and for our posts and coming modifications cause me a headache at the moment, because I simply get lost by all possibilities and how you can change things in the Newspaper theme. 🙂

So, let’s assume we starting with a fresh child-theme and I want to add some custom PHP Code to show up an Amazon buying box on a specific position in all posts, which is the best place to start? As we are using Cloud Library templates there are no “physical” files which I can modify and hooking up by functions.php maybe even not work as desired, that options do we have? Maybe I missed something. Could we do something with the Blocks?

I need a big nudge into the right direction. 🙂

Thanks in advance,
Chris

Post count: 35449

Hi,

Our templates from tagDiv Cloud Library are build dynamical using shortcodes, so you can not set some php code in those temples, but you can use a plugin for php widget ( https://wordpress.org/plugins/safe-php-code-widget/ ) and set this widget in single post templates with tagDiv Composer -> https://www.screencast.com/t/SMwge3nN2HwW -> https://www.screencast.com/t/oE5S8fy4b

Thank you for your understanding!

Post count: 11

Hi Calin,

that did the trick. Thanks for your help. 😀

Cheers
Chris

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