This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

PageBuilder page no longer recognized as Home

Resolved 3 replies pluginplugin-page-builder
11 years ago · Last reply by Greg Priday 11 years ago

I have a trivial bit of code in my child theme’s header.php that displays a different metaslider depending on whether the page in question is_home() or not.

if (!is_home())
{
	echo do_shortcode("[metaslider id=746]");
}

Simple, right? After the update, the home page never triggers is_home as being true. This is made more clear by the following changes to my code:

if (is_home())
{
	vantage_render_slider();
}
else
{
	echo do_shortcode("[metaslider id=746]");
}

In this case, only the ELSE statement is ever executed.

Any ideas? The only thing that’s changed is updating Page Builder.

Thanks!

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Greg Priday Staff 11 years, 7 months ago

    Hi Strika

    Due to some new rules for themes hosted on WordPress.org, we needed to make changes to how Page Builder handles home pages so that we could make our themes comply with the new rules.

    You should be able to fix the issue by changing is_home() to is_front_page(). This should properly detect the new Page Builder home page.

    Please let me know if this works for you.

  2. Strika Eins 11 years, 7 months ago

    Absolutely beautiful; it works perfectly again!

    Thanks so much!

  3. Greg Priday Staff 11 years, 7 months ago

    Fantastic! Glad to have your site back on track.

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.

Have a different question or issue?

Start New Thread