• Resolved imcobarn

    (@imcobarn)


    Hi,

    Curious how can we override template files with a theme?
    What’s the folder structure?

    Like Woocommerce for example you place template files inside woocommerce folder inside the theme.

    I want to make single property page not display sidebar.

    Thanks.

    • This topic was modified 6 years, 7 months ago by imcobarn.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Estatik

    (@estatik)

    Hi there!

    Yes, you can do the same with Estatik:

    1. Create chid theme in your WordPress theme.

    2. Create folder “estatik” within it.

    3. Copy the template you want to change from the Estatik plugin:
    estatik/property/gallery.php
    estatik/property/tabs.php
    estatik/property/share.php
    estatik/content-single.php
    estatik/archive-properties.php
    estatik/content-archive.php
    estatik/shortcodes/register.php
    In your case this should be the template – estatik/content-single.php

    4. Customize the code according to your requirements.

    Let me know if it helped! Thanks.

    Thread Starter imcobarn

    (@imcobarn)

    Perfect!

    Thank you!

    Thread Starter imcobarn

    (@imcobarn)

    Now I need to add my theme divs in the wrapper-start.php

    I use Mesmerize theme with custom child theme.

    I added customized wrapper-start.php to my theme /estatik/partials/ folder but it is not taking effect.

    Am I doing that correctly?

    Thanks.

    Thread Starter imcobarn

    (@imcobarn)

    I was able to get that by adding my divs directly to archive-properties.php file and uncommenting //do_action( ‘es_before_content’ )

    How can I make single.php for property single page?
    what should I name the file?

    Thanks.

    Thread Starter imcobarn

    (@imcobarn)

    Figured it out.

    For anyone else looking for the answer name the file single-properties.php

    Plugin Author Estatik

    (@estatik)

    Sorry for not being available when you needed help.
    Please, note that single-properties.php should be corrected in the theme root, not in “estatik” folder of the theme.
    And unfortunately wrapper-start.php cannot be overridden in Estatik plugin. We are going to add this option to one of our future relesases.
    So for now, you did everything properly. Well done!

    • This reply was modified 6 years, 7 months ago by Estatik.
    • This reply was modified 6 years, 7 months ago by Estatik.
    • This reply was modified 6 years, 7 months ago by Estatik.

    Hi, sorry for my english.

    It does not work for me to redefine templates. I do as you describe:
    mytheme/Estatik/content-single.php

    Nothing works for me

    Plugin Author Estatik

    (@estatik)

    Hi there,

    Please rename “Estatik”to “estatik” and check the result. So it should be smth like: mytheme/estatik/content-single.php
    Let me know if it helped.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Templates override’ is closed to new replies.