• Resolved kristinamyoung

    (@kristinamyoung)


    The plugin works great, however, there is empty space, or empty lines between the title and the start of the content. I have managed to hide the bullet, or hide the title, but then there is a significant gap between that line and when my content displays.

    I am using this code in one instance:
    [display-posts category=”gs2002″ posts_per_page=”1″ display-posts include_content=”true” display-posts include_title=”false” wrapper=”div” display-posts include_date=”false”]

    And this code in another:
    [display-posts category=”player-of-the-week” posts_per_page=”1″ display-posts include_content=”true” display-posts include_title=”true” wrapper=”div”]

    In both, I can’t figure out if the space is because it’s blank placeholder space, or if it’s padding between the title or content, etc. But I’d like the content to appear under the title.

    https://ww.wp.xz.cn/plugins/display-posts-shortcode/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I’m surprised those shortcodes are actually working. You do not need to place display-posts multiple times in the shortcode. For instance, the first one should be changed to:

    [display-posts category=”gs2002″ posts_per_page=”1″ include_content=”true” include_title=”false” wrapper=”div” include_date=”false”]

    Can you provide a link to a page with the issue? My guess is that your theme is adding CSS that affects it. I used a common name ( .content ) for the content container, so your theme might be writing CSS that styles that thinking it’s your main site’s content.

    I just added a content_class parameter which lets you change the class name used. You can either download the development version now, or wait a few weeks for the next public release and your WordPress install asks you to update.

    Here’s an example of its usage (I added the parameter to the end of your first shortcode):

    [display-posts category=”gs2002″ posts_per_page=”1″ include_content=”true” include_title=”false” wrapper=”div” include_date=”false” content_class=”listing-content”]

    Now the posts will display the content using .listing-content as the container’s class name rather than .content.

    Thread Starter kristinamyoung

    (@kristinamyoung)

    Whoops, I copied that display-posts too many times!

    Thank you, I downloaded the plugin and changed the shortcode… the space still exists…

    http://www.warriortrainingsystem.com/test/2002-2/

    I hid the title obviously but I think the first line should be more in line with Team or Advantage from the other column… the Game Summary is a different element that has maybe a 5px wrapper on it…

    The theme is Enfold…

    The other page is http://www.warriortrainingsystem.com/test/

    Scroll down to Player of the Week (that wording is a different element)… I show the title in this one, February 28, 2016 — then there is a significant space between that title and the start of the content.

    Thank you so much for your help!

    Thread Starter kristinamyoung

    (@kristinamyoung)

    actually, this is the code for that second one… so if anything there would be a space under Player of the Week, but the space is between the title and the start of the content.

    <h4 style=”text-align: left;”>PLAYERS OF THE WEEK</h4>
    [display-posts category=”player-of-the-week” posts_per_page=”1″ display-posts include_content=”true” wrapper=”div”content_class=”listing-content”]

    Thread Starter kristinamyoung

    (@kristinamyoung)

    My apologies, it’s not resolved.

    But the correct link above should be

    http://www.warriortrainingsystem.com/test/YR2002/

    Thread Starter kristinamyoung

    (@kristinamyoung)

    i recreated all the pages and works. thank you so much!!!

    Plugin Author Bill Erickson

    (@billerickson)

    On line 1479 of your theme’s layout.css file it is adding 50px of top and bottom padding to .content. If you download the development version and use the content_class parameter to change the name from .content to something else then this will be resolved.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Empty Space/Lines Under Title, Before Content’ is closed to new replies.