• Resolved rekkette

    (@rekkette)


    Hi! I’m trying to apply some basic styling, but I’m having a problem figuring out the proper syntax for my PHP statement.

    It should more or less read

    “If !is_front_page OR !is_posts_page
    DO THIS
    else
    Do THAT
    end if”

    Right now it’s breaking my site:

    <!-- Content -->
                    <?php if ( !is_front_page() && !is_posts_page() ) : ?>
                    <div id="content" style="background-color:#faf2da; padding:0 20px 20px 0;">
                    <?php else : ?>
    				<div id="content">
    				<?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Basic PHP question (If Or Else)’ is closed to new replies.