Viewing 6 replies - 1 through 6 (of 6 total)
  • I think you don’t need neither of those 😀
    The plugin you’re using to show that box is probably filtering the_content, so you might need to append to it a widget area in single context with an higher priority (like priority: 0).

    Thread Starter jrothra

    (@jrothra)

    I’m not sure what you mean when you say the plugin I’m using to show that box. What box? Do you mean the slider that replaces the default carousel?

    What I’m wanting to do is place content above the latest posts feed, but not be a full page width (only the width of the content feed area.

    Oh, I totally misunderstood what you wanted 😀
    I thought you were talking about latest posts here : http://www.johnrothra.com/devotionalteaching/christian-living/pride-overcoming-the-choice-that-impacts-us-all/
    the box About/Latest Posts
    😀
    My fault.

    You need this -> http://themesandco.com/customizr/hooks-api/#__before_loop_main-wrapper

    so something like:
    add_action('__before_loop', 'my_function', 0);
    and then a check on if is home inside your function.

    Thread Starter jrothra

    (@jrothra)

    and then a check on if is home inside your function.

    I don’t know much php, so are there samples of this I can look at to learn from?

    Thread Starter jrothra

    (@jrothra)

    I tried adding this (using the info to add a widget below the header wherein I put the Revolution Slider). However, this php only gives me an error:

    // Place the widget area before loop on front page
    add_action ('__before_loop', 'add_my_widget_area', 0);
    function add_my_widget_area() {
        if (function_exists('dynamic_sidebar')) {
        dynamic_sidebar('Preloop Widget Area');
        }
    }

    The functions.php works fine without this particular code, so I know it’s something in that.

    Let me see your functions.php 😉
    (pastebin)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Action hook for before article container on front page’ is closed to new replies.