Site logo

[Support request] How to add Theme Templates

Home Forums Support [Support request] How to add Theme Templates

Home Forums Support How to add Theme Templates

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • #1960163
    Gerik

    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?

    #1960778
    David
    Staff
    Customer Support

    Hi there.

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

    #1961454
    Gerik

    done

    #1961525
    David
    Staff
    Customer Support

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

    #1962411
    Gerik

    Sorry, fixed.

    #1962461
    David
    Staff
    Customer Support

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

    Where is this setting ?

    #1962708
    Gerik

    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.

    #1963038
    David
    Staff
    Customer Support

    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 ?

    #1963680
    Gerik

    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.

    #1964069
    David
    Staff
    Customer Support

    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.

    #2452078
    Zach

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

    #2452285
    Gerik

    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.

Viewing 12 posts - 31 through 42 (of 42 total)
  • You must be logged in to reply to this topic.