Tagged: front page
February 23, 2014 at 5:14 pm #228140
I am in process of integrating an existing CodeIgniter site to incorporate the Enfold WordPress theme for styling the majority of the content.
This is done through calling WordPress “require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ ); ” in codeigniter index.php file.
However as this method does not load all of the Enfold wordpress theme configuration the Front Page does not display the correct Full Width Slider instead it is wrapping this slider inside content and article div’s.
I believe that this due to the FrontPage ID check not being returned correctly and therefore as Part of “template-builder.php”
//check first builder element. if its a section or a fullwidth slider we dont need to create the default openeing divs here
$first_el = isset(ShortcodeHelper::$tree) ? ShortcodeHelper::$tree : false;
$last_el = !empty(ShortcodeHelper::$tree) ? end(ShortcodeHelper::$tree) : false;
if(!$first_el || !in_array($first_el[‘tag’], array(‘av_section’,’av_layerslider’,’av_slideshow_full’, ‘av_fullscreen’) ) )
Is there a way to create new template that could mimic the front page or way could manually override the front page checks.
And display the full width slider without it needing to actually be recognised as the front page assigned in the theme settings.
PaulFebruary 24, 2014 at 2:27 am #228288
Can you please give us a link to the website? I’ll ask Dude. Please wait for his response.
IsmaelFebruary 24, 2014 at 4:51 am #228338
Sure link is: new.leemarine.co
It is the front page that I am trying to get to load as full screen layout.
With the slider full screen and no <h1 class=”post-title entry-title”> and no Author Links and no Breadcrumbs.
This is currently being called through a direct copy of the index.php code in enfold theme directory.
I have attempted to edit this index.php previously and remove some of the added divs and did have the slider showing full screen, however it the whole page was offset to the left by about 30px with grey footer background showing on right hand side.
So have returned to original index.php pending your advice.
PaulFebruary 24, 2014 at 8:37 am #228366
Tbh I’m not sure why it doesn’t work any maybe some additional customization is required to load Enfold with the CodeIgniter framework. We only support unmodified, wordpress based websites and we can’t help you with the implementation of the CodeIgniter framework. My guess is that you can’t load the wp-blog-header.php directly but you first need to initialize the wp-load.php (see http://frankiejarrett.com/the-simplest-way-to-require-include-wp-load-php/ ) but I can’t say it for sure. Probably the best approach would be to debug the code and to check which variables exist and which templates are loaded by wordpress. You can hire a talented freelancer for this project if necessary: http://www.microlancer.com/
You must be logged in to reply to this topic.