Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #228140

    Good Morning,

    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[0]) ? ShortcodeHelper::$tree[0] : 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’) ) )
    {
    echo avia_new_section(array(‘close’=>false));
    }

    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.

    Cheers

    Paul

    #228288

    Hey pbennion!

    Can you please give us a link to the website? I’ll ask Dude. Please wait for his response.

    Best regards,
    Ismael

    #228338

    Good Morning,

    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.

    Thanks again.

    Paul

    #228366

    Hey!

    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/

    Regards,
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.