Viewing 4 replies - 1 through 4 (of 4 total)
  • mcoville,

    Have you been able to accomplish this?

    If so, can you please share how to do so?

    If not, has anyone else on this forum able to assist?

    Thank you.

    Link to directory: https://americanwheelchairvansociety.org/resources/

    Thread Starter mcoville

    (@mcoville)

    I have not found a way to do this yet. Sorry.

    You might be able to loop page content within the home.php template file. Just do it above the section that creates the categories. If that doesn’t work you can always create a widget area within the home.php template file, reference it in you theme’s functions.php file and use a widget for the content.

    Another thing you can try to do is create a page template for your theme and use <?php echo do_shortcode(); ?> below the page loop. ‘

    I’ll test a couple different solutions and see if I can come up with more solid resolution ??

    Hi, to solve this nasty problem I have found a simple solution.

    1) Find directory.php in ‘/includes/shortcodes/’
    2) Adapt this file as follows (bold):

    —–

    function ldl_shortcode_directory() {
    ldl_enqueue(1);

    ob_start();
    ldl_get_template_part(‘home’);
    return ob_get_clean();
    }
    add_shortcode(‘directory’, ‘ldl_shortcode_directory’);

    —–

    After this change you’ll see that it’s possible to put a text introduction above the nav-bar of the directory!

    If not, you could put the shortcode into a new page…

    Best regards,
    Jan Bakker/Duyo Geldrop
    The Netherlands

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Content above [directory] shortcode’ is closed to new replies.