WordPress.org

Ready to get started?Download WordPress

Forums

Press Page
Need help on width and positioning (6 posts)

  1. cre8ve1
    Member
    Posted 1 year ago #

    Hello,

    I'm trying to get the width to be 100%, not 100 pixels. Any thoughts? I've been playing around with my custom CSS (that I copied from presspage.css) and modified it but it isn't really overwriting the presspage.css for my child theme.

    Also, I have this shortcode written at the end of my copy in the Page > Edit Page > paragraph section, and yet it is floating to the top. I think this might be due to position: relative.

    I'll keep playing in the meantime but thanks for creating a WordPress plugin! I was using the Smooth Div Scroll on a non-WP site already and I love it!

    http://wordpress.org/extend/plugins/press-page/

  2. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Try adding !important at the end of your CSS rules in your custom CSS. (e.g. width: 100%!important;) I'm guessing that the order of the stylesheets is preventing your styles from affecting the display.

  3. cre8ve1
    Member
    Posted 1 year ago #

    That worked... thanks! Still working on it floating to the top of my content.

  4. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    That may be due to how the shortcode is handling the markup, which is with an output buffer, which tends to run first, before other stuff is run on the page. You may be able to get around it by playing with the CSS, but it was originally written (and tested) to be sort of a full page thing -- I'd need to adjust the code to just not use the ob to fix it completely.

  5. cre8ve1
    Member
    Posted 1 year ago #

    I think I'll just place it at the top of my footer, using Hooks. This seems it could work.

    One more question... can I hide the Article title? I don't need text below my images.

    Thanks for your timely responses today!

  6. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    If you just omit the article title, you can get around displaying it. Alternately, you can "cheat" by adjusting the height of the div with CSS so it cuts off right above the titles.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.