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 1 year, 3 months ago.

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #55310

    FutureExpat
    Participant
    Post count: 41

    OK, I’m stumped. Quite a while ago I was able, with some help and coaching, to add a widgetized area on the homepage for a slider.

    Now I’m working on a new site, also using Prose. I cut/pasted exactly what I had from site 1 into site 2 and it didn’t work.

    Here’s what I added to Custom Code:

    [php]add_action(‘genesis_before_loop’, ‘add_home_widget_area’,5);
    function add_home_widget_area() {
    if( is_home())
    dynamic_sidebar(‘Home Widget Area’);
    }

    //Adds a widget area to home page before content
    genesis_register_sidebar(array(
    ‘name’=>’Home Widget Area’,
    ‘id’=>’home1′,
    ‘description’ => ‘Widget area displays before content area on the home page’,
    ‘before_title’=>’<h4 class="widgettitle">’,’after_title’=>’</h4>’,
    ‘before_widget’ =>’<div id="home-widget">’, ‘after_widget’ => ‘</div>’
    ));
    [/php]

    When that didn’t work I tried another version supplied by an active member of this forum. That didn’t work either.

    I know that Prose is “different,” but seriously? And I have no idea why it would work on one Prose site and not the other?

    Appreciate any and all help as I’m not a programmer.

    http://local
    #55324

    RobG
    Participant
    Post count: 1055

    On the second website what theme are you using?


    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

    #55329

    FutureExpat
    Participant
    Post count: 41

    Prose. Prose on both. It’s on a test site right now, at http://bjmann.shewblogs.com/

    #55336

    RobG
    Participant
    Post count: 1055

    Unable to access the link you provided.


    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

    #55350

    FutureExpat
    Participant
    Post count: 41

    Sorry, that’s the link. Not sure why it’s throwing an error right now, but the code I added is exactly what I posted above.

    #55354

    RobG
    Participant
    Post count: 1055

    Do you have a working link were I can see the widget in action?


    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

    #55358

    FutureExpat
    Participant
    Post count: 41

    Well, I can show it to you where it’s working — http://futureexpats.com.

    Susanna

    #55361

    RobG
    Participant
    Post count: 1055

    Susanna were did you get this code from that you added to your site did you get it from StudioPress’s website?
    The reason I’m asking I would like to view the codes un touched.


    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

    #55363

    FutureExpat
    Participant
    Post count: 41

    Rob, I’m not sure what you mean by viewing the codes untouched. This was a chunk of code that I worked out with some help from StudioPress tech support a while back. what I pasted here is copied / pasted exactly from the custom php area on my dashboard.

    #55369

    RobG
    Participant
    Post count: 1055

    The reason I’m asking about the codes you posted is because it looks like there might be something missing from it at the beginning.

    I have the same theme you have installed on my test site and was going to try the code you provided but I’m not sure the codes you posted are complete. I was thinking maybe you got it from StudioPress’s main site I was going to take a look.


    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

    #55390

    FutureExpat
    Participant
    Post count: 41

    Well, the code is working on my Future Expats site, but not on the new site. Same code, same theme.

    #55409

    braddalton
    Participant
    Post count: 10563

    You can do this by installing the Genesis Prose extra’s plugin with the Genesis Layout Extra’s plugin.

    Or you can use code:

    I’d add the code to the init.php file


    #55476

    RobG
    Participant
    Post count: 1055

    Hey Brad, from what I understand she is using the code for one website and it working just fine, but also has it added to a second website and it’s not working. I was trying to see what was being use for the widget.


    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

    #55480

    braddalton
    Participant
    Post count: 10563

    Hi Rob.

    Yes, understand. Its not the code but more where the code goes to make it work as Prose is different.

    I know the code she is using because i wrote it and pasted it on Pastebin last year. http://pastebin.com/u/braddalton


    #55610

    RobG
    Participant
    Post count: 1055

    Hi Brad thanks so much I hope this will help her with the problem. Have a great day


    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

Viewing 15 posts - 1 through 15 (of 22 total)

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