Site logo

Archived topic

How to add Theme Templates

41 replies · Started by Gerik on May 25, 2020

Viewing posts 31–42 of 42

Also, I saw another forum where you used a similar code for the header.

There was one difference. (I'm not a coder)

Line Three.
return true;
or
$display = true;

I tried both doesn't still work but which one is correct or they are the same?

Hi there.

can you provide a temporary Admin login for the site so we can take a closer look ?

done

Can you set the Profile to Administrator ? As i can't access the full admin dashboard.

Sorry, fixed.

The setting on where the template is applied to the IDX page.

Where is this setting ?

Left Menu
Optima Express > IDX Pages
On IDX Pages, Scroll down to Search. From there you can pick the theme template file.

On there you can see the permalink.

I had a look at the backend.
The bottom line is when you set the full width template in the IDX Pages > Search. That template is not being used by the plugin. I checked the plugins documentation and i could not see any specific requirements. Could you check with the Plugin developer as to why this may be ?

Yes I tried to reach out to them.

They didn't understand why I'm doing what I'm doing.

I'm assuming it's old code that requires you to create a theme file that is hard coded.

What website you recommend to hire a developer to look at their code.

We could try creating a Custom header.php specifically for your full width template.
You would make a copy of the GP Header - found here - note the line i have linked to:

https://github.com/tomusborne/generatepress/blob/2c7c8a76d3b58b0b97e82b3a7a5ebf022a1ddfbe/header.php#L20

1. Rename your header.php to header-fullwidth.php
2. On the line commented - change it to:

<body <?php body_class( 'full-width-content' ); ?> <?php generate_do_microdata( 'body' ); ?>>

3. Then in your fullwidth.php this line:

get_header(); ?>

we change to call our fullwidth header like so:

get_header( 'fullwidth' ); ?>

Now this should add the full-width-content class to that page template. And you won't require the Layout Element.

@gerik any luck getting this to work? I'm running into the same issue.

Hey Zach,

No. What I wanted was the search to be full width and the individual listings 1100 px.

This is what I had to do.

Make the whole site the width of what I want the single listing to look like (1100px). Then for the search page, I had to create a blank page with the search shortcode (not using their default search). I made the newly created search page, full width. I make a redirect if anyone lands on the default search url to redirect to the one I created.

Let me know if that made sense. Just to let you know, I got frustrated with their support and went with another provider.

This archived topic is closed to new replies.