Jonnyauk / Wonderflux

A free, professional Open Source theme framework for WordPress & BuddyPress. Download the latest stable release by clicking on the 'releases' tab. API documentation at http://wonderflux.com/guide or drop by the main site at
http://wonderflux.com
159 stars 46 forks source link

How do I enable front-page.php #29

Closed Peace-N closed 11 years ago

Peace-N commented 11 years ago

How do I create a front-page.php with custom development in Wonderflux, it doesn't seem to be responding.

Jonnyauk commented 11 years ago

Hi, you have a number of options to manipulate front page or home page content as follows:

Peace-N commented 11 years ago

Thanks Jonny,

I had to add a function in my functions file, function my_wfx_remove_sidebar() { if ( is_front_page() ) : add_filter ('wflux_sidebar_1_display','wfx__N'); endif; } add_action ('template_redirect','my_wfx_remove_sidebar', 1);

Is it proper this approach ?

Jonnyauk commented 11 years ago

Yes - that's perfect ;)

Peace-N commented 11 years ago

Thanks a mill :+1:

Jonnyauk commented 11 years ago

No problem at all - if you have any other questions/ideas (or spot any bugs!) just report it as another issue on GitHub.

Jonnyauk commented 11 years ago

I was just looking at this again - your code is fine and will work perfectly, but if will always disable the sidebar. If you want to do this across the entire site, it's just as easy to use the Wonderflux layout options to control this (under 'Appearance' in admin area or off the Wonderflux link on the top WordPress admin bar - just in-case you had missed the sidebar option ;)

Peace-N commented 11 years ago

Brilliant thanks, this would definately do the Job.. I had actually missed.