• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Do I need a conditional statement?

Home › Community Forums › Epik Theme Support › Do I need a conditional statement?

Tagged: conditions, template

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 7 months ago by dono2081.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 23, 2013 at 3:52 pm #5463
    dono2081
    Customer

    Hi Eric & Everybody!
    I see in most of the templates in Epik there’s a conditional statement early, which goes something like: “If there’s something in any of these widget areas, then …” and the template goes off and produces content.

    I’ve made my custom template, and it will always have widgets in the widget areas, so is there any point in my creating this conditional for My Template? Is there some “programming best practice” or “Good idea to do this for Genesis” thing that I should know about related to this condition?
    Thanks!
    DonO

    June 23, 2013 at 10:54 pm #5469
    scooby
    Customer

    I’d just do it the way they have it setup in the home file. Thats how StudioPress does it. I haven’t seen any specific documentation on it from SP….so if you want more info on it just search the WordPress.org codex to learn more about best practices – http://codex.wordpress.org/WordPress_Coding_Standards

    June 24, 2013 at 2:52 pm #5482
    dono2081
    Customer

    Thanks, Scooby. Good idea.

    I’m not sure … are you’re one of the authors of Epik?

    I’m specifically interested in finding out if the conditional is a requirement within Genesis+Epik to make something work? If you helped write Epik, you’re the guy who would know.

    -DonO

    June 25, 2013 at 1:20 pm #5494
    scooby
    Customer

    No only Wes creates all of the themes here. Everyone else, including myself is just a regular customer/member like yourself.

    June 25, 2013 at 2:28 pm #5496
    dono2081
    Customer

    Awesome!
    Yeah I believe that the conditional is included just to protect the theme from borking somehow. -D

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Do I need a conditional statement?’ is closed to new replies.

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework