• Great Water Filters

    (@greatwater2024)


    Hello team, I tried to reach out via your page about this issue. I followed your documentation to create a new folder and add a new template to customise the stores, but is worthless.

    It seems that the page is being considered as a POST type, even though is a WPSL_Store type, and the sidebar from the overall post template is causing issues.

    I managed to hide the sidebar, but the content is not filling the whole page. It should look like this page: https://staging3.greatwaterfilters.com.au/

    We are customising the store pages with local content, adding a canonical for the main page, and adding a IP plugin to show the local contents at every different location to ensure local results and avoid any possible penalisation from Google for duplicated content.

    Can you indicate how to fix the custom template issue? I need to fix 800 pages ASAP

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Great Water Filters

    (@greatwater2024)

    PD: the code you asked to add in config.php breaks the site when added

    farroyo

    (@farroyob)

    Hi there, thanks for writing.

    As you mention, store locations in our plugin are indeed WordPress posts, but they have a custom post type attribute to set them apart from the regular posts in your backend. This is standard WordPress practice, the vast majority of the plugins that include a certain custom content type use this same approach of using WordPress posts with custom attributes, so that shouldn’t come as a surprise indeed.

    The article from our documentation that deals with creating a custom store page template mentions that the provided example is tailored for the default Twenty Fifteen theme. It may work with other themes but that is not guaranteed. You should check your theme’s documentation (Flatsome, it seems) so your custom template for the wpsl_stores custom post type is different from the standard post type and removes all unwanted elements (sidebar, etc.).

    I hope that helps, but please get back otherwise.
    Best regards,

    Thread Starter Great Water Filters

    (@greatwater2024)

    Hello,

    I checked their documentation, and there is no reference to wpsl_stores or how to exclude a post type from their theme. I am completely lost here…

    When using WpBakey, I added the Wpsl_store under roles, but in their editor wpsl_stores are not ab object either (portfolio, page & post only).

    Hi again,

    All WordPress themes do have the built-in feature to have different templates for different post types, you just have to follow a certain naming convention for the templates. As mentioned in our article about how to create custom store page templates:

    The default store page shows a map with the store location on it, the address details, and if enabled, the opening hours. You can change this by creating a single-wpsl_stores.php file in your theme folder and adjusting it to your needs.

    So all you have to do is, in your theme folder, creaete a template file with the name single-wpsl_stores.php with your desired layout, and that should be it.

    Please let us know if that doesn’t fix your issue.
    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.