Site logo

Archived topic

Header for MLS Search results

7 replies · Started by Joseph on August 8, 2018

Viewing posts 1–8 of 8

Trying to get the header to appear on a website that does random searches for real estate. Everything else works fine such as the menu, footer, etc. But can't seem to get the header to appear.
Maybe in GPHooks but the listing change daily?
Any help is appreciated.

On the link below, you can bypass the signup form by refreshing your screen.

Hi there,

How are you currently adding the header content to the site?

Through GPHooks (After Header Content). This was supposed to be a simple 1-2 page site and so because of the video on the home page added this code on a page by page basis.

<?php if ( is_page( '61' ) ) : ?>
[one-third-first] [/one-third-first]
[two-thirds]<h1 style=color:#c43c02;font-weight:400;" class="headtitle">Located <span style="color:#ffffff;">in the</span> Heart <span style="color:#ffffff;">of the<br />Beautiful</span> Texas Hill Country</h1></span>
[/two-thirds]
<?php endif; ?>

So you're explicitly targeting page 61 to show the header (and nowhere else).

If you want to ditch the PHP, you might want to try out GPP 1.7: https://generatepress.com/gp-premium-1-7/

It has a new hook system which allows you to choose your own Display Rules without any coding.

Let me know :)

No, just targeted page #'s where the header was needed. The example above was on page 61.

The MLS search is creating a page for each listing. There has to be constant (header) hook for the searches. Much like in WooCommerce and other platforms where a hook is necessary to display the header.

I'll take a look at GPP 1.7

Is it the regular WP search template?

If so, you can add this to your condition: is_search()

Otherwise you would need a function specific to the MLS plugin.

Tom, it's not the regular WP search template. I have reached out to the MLS developers for assistance with this feature within their platform.

As always thank you for your time.

No problem :)

This archived topic is closed to new replies.