This topic is now archived and is closed to further replies.
Hopefully an easy question. I have some custom code included in a Next section in a DMS site that I'm converting to platform5. What is the easiest way to insert my code into a "section" which I can easily add to my page structure with the platform5 page editor? I have the Embed extension but that takes javeascript, and my PHP test failed. Also have the Shortcodes extension, but looks like that only inserts objects into the WP-loop? and again, how to create a Hook that can go here?
I would like to upgrade my site to PHP 7, but there is an error warning in the PL Framework theme. I should think this should be fixed asap, I cannot be the only person trying to be up to date.
1976 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
By Dan Haddock
DMS: Latest Version
Running a Child Theme
Coming Soon Page & Maintenance Mode by SeedProd
Contact Form 7
Cookie Law Info
DMS Professional Tools
Enhanced Media Library
Google Analytics for WordPress by MonsterInsights
Google XML Sitemap
Jetpack by WordPress.com
MailChimp for WordPress
Really Simple SSL
Schema App Structured Data
Sucuri Security - Auditing, Malware Scanner and Hardening
I am looking to style the Continue Reading Button with the PHP you provided in an earlier ticket here:
I put the PHP code into my site, however I do not get my Icon back, I just get back Read More >>
I have attached a screenshot of the code in place on my site along with the output.
Interested to know what I may be doing wrong? - I am very new to PHP so a bit apprehensive on this.
The Images: https://drive.google.com/open?id=0B0i4JJXa2jdQN2xoakZNRUdmaU0
Let me know if you need any more information from me.
In the past I would use nextbox for this task. However, Platform 5 does not have nextbox. I will do my best to describe what I am trying to do.
I am creating a template for coaches, each product has its own link but they all share a common coach id. I want to set up the templates with the links for each product with a variable for the coach id so that I can change the coach id for all the links on the site by just changing the value of the variable $coachId. To do this I'll need to do something like the following...
<a href="salesite.com/productcodes/referringRepId=<?= $coachId ?>" target="_blank">Product Purchase Link</a> Is it possible to do this with Platform 5?
By Barnaby Skinner+
Really simple question: where would I add code to a specific page header? I can see in the settings I can add code to the global header, but can't see how to do it for a single specific page. It's related to facebook pixel tracking