• I have an external php file and within a page I put:
    [insert_php] include('php/sorteio.php'); [/insert_php]

    The problem is that in my php code there are before CSS definitions inside the <style> tag.

    It seems Insert PHP modulo is unduly inserting paragraphs between CSS lines, invalidating them.
    How to solve this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rogeriodec

    (@rogeriodec)

    I think I discovered a bug:
    If there is a blank line between one CSS tag and another, Insert PHP is creating a <p> </p> and inserting between them, which messes up the CSS code.

    Thread Starter rogeriodec

    (@rogeriodec)

    Also, for some reason, it’s inserting <br /> between html lines that I put inside my php code… very buggy

    Plugin Author WillBontrager

    (@willbontrager)

    Roger, what you’re seeing is the WordPress function that inserts paragraph and break tags into content you type into the edit box. Insert PHP inserts your content into the post or page. Then, WordPress does what it does with the content.

    You may need to figure out a way to get the CSS in there some other way, or make them all one line.

    Will

    Thread Starter rogeriodec

    (@rogeriodec)

    Ok, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CSS Problem’ is closed to new replies.