How to add an WIDGET area just below article?

Community Forums Forums Design Tips and Tricks How to add an WIDGET area just below article?

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  braddalton 1 year, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20534

    Nandita
    Participant
    Post count: 32

    My blog URL is http://99clicks.net

    I want to add an widget area just below the article (Strictly below the article, means – just above the “Related Posts” in my blog posts)

    I followed the post of Brian Gardner on this link and my blog crashed immediately http://www.briangardner.com/code/add-after-post-widget/

    TIME for you to CHANGE: Not only me, lots of other bloggers also faced the same consequence after adding this piece of code (by Brian Gardner Post). I learned this thing after going through different threads on this forum related to adding widget area.

    I’m surprised, how you have not noticed this serious issue of Crashing of blogs (bloggers who don’t know a single piece of code, and FTP is far away for them) after such a log time? (lots of bloggers also complaint about this in the forum). If this piece of code is not working, kindly consider modifying it or completely removing  it.

    Then I followed the link and able to succeed but PARTIALLY http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar

    If I want to add the widget after the article doesn’t mean it should be at the end of content, after the comments XXXXX

    The widget area should be just below the article. And on my blog it is just above the Related Post area.

    Can you pls hep me to achieve this customization?

    Thanks.

    #20542

    braddalton
    Participant
    Post count: 10681

    It might have been caused when copying and pasting code as i have used that code and it works.

    Based on this visual hook map, which hook is in the location you want your widget?

    Once you have that worked out, simply change the hook from this genesis_after_content_sidebar_wrap to the hook you want to use in this code.
    [php]
    add_action( ‘genesis_after_content_sidebar_wrap’, ‘child_after_content_ad_sidebar’ );
    /** Loads a new sidebar after the content */
    function child_after_content_ad_sidebar() {

    echo ‘<div class="after-content-ad">';
    dynamic_sidebar( ‘after-content-ad’ );
    echo ‘</div>';

    }
    [/php]

    Another option is to install the Genesis Simple Hooks plugin and use the code from the tutorial you linked to above in the correct hook location.


    #20554

    Nandita
    Participant
    Post count: 32

    Hi Brad,

    It’s not working – neither the plugin is compatible with my version (after installing), nor the code you have mentioned helped me.

    I simply want to add a widget area just after the last line of my every blog posts (articles). That’s all!

    Which pieces of codes I should add to my functions.php file?

    Hope you help me :)

    #20625

    Nandita
    Participant
    Post count: 32

    Still not able to figure-out the solution, crashing my theme (site) ‘N’ number of time.

    Hope you will provide me the right code to add for my above need.

    Thanks.

    #20643

    braddalton
    Participant
    Post count: 10681

    THis code has been written by the founder of StudioPress http://www.briangardner.com/code/add-after-post-widget/

    Sorry to see you’re having problems however you have been provided code which has been tested and works.

    You need to paste the correct code in the right location or it won’t work.

    Make sure you remove all the old code before adding the new block.

    You could also install WordPress locally and test the code locally so you can learn more about the basics of PHP coding.

    Hope you can get it working.


Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.