Okay
  Public Ticket #655662
Background image - loading issue
Closed

Comments

  •  1
    Benoit started the conversation

    Hi,

    We just paid a company in order to optimize a client's website, which was really interested and lead to nice outputs for you too, as Salient is running on this website!

    First : this code <div class="page-header-bg-image" style="background-image: url(none);"></div> is leading to a 404 error when loading, delaying the page by 800mseconds!

    How to avoid that?

    Also, some options are displayed in the code, even if we disable it. For example I disabled the search feature, and still this appear in my code:

    <div id="search-outer" class="nectar">

    <div id="search">

    <div class="container">

    <div id="search-box">

    <div class="col span_12">

    <input type="text" name="s" value="Start Typing..." data-placeholder="Start Typing..." />

    </form>

    <span><i>Press enter to begin your search</i></span> </div><!--/span_12-->

  •  8,992
    Tahir replied

    Hey, thanks for reporting this!

    To quickly fix it until the next release in the functions.php file this line:

    if(!empty($bg)) { ?><div class=\"page-header-bg-image\" style=\"background-image: url(<?php echo $bg; ?>);\"></div> <?php } ?>

    needs to be this

    if(!empty($bg) && $bg != \'none\') { ?><div class=\"page-header-bg-image\" style=\"background-image: url(<?php echo $bg; ?>);\"></div> <?php } ?>

    Best.


    ThemeNectar Support Team 

  •  1
    Benoit replied

    Hi,

    Thanks a lot, it solved the issue!

    check the speed page results before and after with included pictures! ;)

    Best,