Home>Support>Bugfix for Influence theme regarding Site Description overlapping the slider

Bugfix for Influence theme regarding Site Description overlapping the slider

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello,

I encountered a problem and fixed it. I hope you can reproduce it and put the fix into the public.

Reproduction:

* WordPress 4.0
* Influence 1.06
* Demo Homepage with the default Demo Slider
* Settings -> Apperance -> Theme Settings -> Logo -> Site Description = Enabled
* Settings -> Apperance -> Theme Settings -> Home Page -> Menu Overlaps Slider = Disabled

Effect:

* Slider’s position is too high.
* Header and Slider overlap.
* Slider shines through the header.

Cause:

* Sentinel does not check for “Logo -> Site Description”

Fix:

* file: inc/template-tags.php
* function influence_site_header_sentinel()
* fix could be better integrated into the existing if, but this is proof-of-concept

Without fix:

function influence_site_header_sentinel(){
	?>
	<div class="site-header has-shadow site-header-sentinel">

		<div class="container">

			<div class="hgroup">

				<h1 class="site-title">
					<?php influence_display_logo(); ?>
				</h1>

				<?php if(siteorigin_setting('general_site_description')) : ?>
					<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
				<?php endif ?>



			</div>

With fix:

function influence_site_header_sentinel(){
	?>
	<div class="site-header has-shadow site-header-sentinel">

		<div class="container">

			<div class="hgroup">

				<h1 class="site-title">
					<?php influence_display_logo(); ?>
				</h1>

				<?php if(siteorigin_setting('general_site_description')) : ?>
					<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
				<?php endif ?>

                <!-- fix: -->
				<?php if(siteorigin_setting('logo_site_description')) : ?>
					<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
				<?php endif ?>

			</div>

Greetings

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Hi Dinh Bao Dang

    Thanks very much for your contribution. I’ll log this as a bug report for Greg to attend to as soon as possible.

    Thanks again for getting involved.

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More