Just tested the code in Prose locally and it works.
Sometimes the Apostrophes can turn around causing errors of you don’t copt it from the view raw link and paste it at the end of the file using a code editor like Notepad++.
If you copy from the embedded code, this can cause errors.
Brad and Rob, thanks so much. I also got a suggestion from Nick at StudioPress support suggesting I create a plugin using code like:
<?php /* Plugin Name: Prose Custom Code Plugin URI: http://example.com Description: Loads customizations for my site Version: 0.1.0 Author: Susanna Perkins Author URI: http://example.com License: GPLv2 or later */
and then adding the custom code since thecustom code in Prose doesn’t run on the admin side. Ideas about this?
You can place that content in a new PHP file and add the custom PHP code below it then zip it up and install it as a plugin.
You can then add all your custom PHP code to the file in that plugin rather than use the Prose Custom code box on the admin side.
I would test this locally before using it on a live site.
The code i provided is tested and works in Prose if placed in the lib/init.php file however a plugin is a good idea for Prose.
Just wanted to let you both know it’s set Really appreciate your help.
The topic ‘Add new widgetized area in Prose’ is closed to new replies.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.