Add new widgetized area in Prose

Community Forums Forums Design Tips and Tricks Add new widgetized area in Prose

This topic is: resolved

This topic contains 21 replies, has 3 voices, and was last updated by  FutureExpat 11 months, 2 weeks ago.

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #55615

    braddalton
    Participant
    Post count: 8883

    Just tested the code in Prose locally and it works.

    Here’s the screencast.

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #55822

    FutureExpat
    Participant
    Post count: 41

    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]<?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
    */
    [/php]

    and then adding the custom code since thecustom code in Prose doesn’t run on the admin side. Ideas about this?

    Susanna

    #55834

    braddalton
    Participant
    Post count: 8883

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #55836

    FutureExpat
    Participant
    Post count: 41

    Thanks, Brad.

    #56214

    FutureExpat
    Participant
    Post count: 41

    Just wanted to let you both know it’s set :-) Really appreciate your help.

    Susanna

    #56249

    RobG
    Participant
    Post count: 1036

    Glad you got it fix


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    #56608

    FutureExpat
    Participant
    Post count: 41

    Me too!!! :-)

Viewing 7 posts - 16 through 22 (of 22 total)

The topic ‘Add new widgetized area in Prose’ is closed to new replies.