Home › Forums › VW Theme › GENERAL QUERIES › Creating my own page templates
Tagged: customization
- This topic has 9 replies, 3 voices, and was last updated 4 years, 9 months ago by developer vwtheme.
-
AuthorPosts
-
July 8, 2019 at 1:51 pm #16637Brugère CharlotteParticipant
Hello,
I would like to customize the page templates of my website. I usually create a child theme in order to do this, but the theme I bought here (vw Gardening) is built with a plugin : how can I create custom page templates (and other code customizations) that won’t be overwritten with the next update of my theme ?
Thanks a lot.July 9, 2019 at 4:45 am #16685developer vwthemeParticipantHi,
You need to add the custom page in the plugin only.
Thank You.
July 9, 2019 at 7:09 pm #16742Brugère CharlotteParticipantThanks for your answer. Will my files be overwritten when the plugin will be updated ?
July 9, 2019 at 7:35 pm #16745Brugère CharlotteParticipantAnd there is a problem with the category template. If my category contains posts with a specific template from the theme (like “VW Page With Right Sidebar”, for example), this template will be used for the category page (and that is not really a good idea !!).
You can have a look here :
category using the “archive.php” template : http://locavore-sologne.fr/category/produits-locaux/biere-sologne
and category using VW Page With Right Sidebar template : http://locavore-sologne.fr/category/produits-locaux (and that is not what I want !!).
I think that the problem comes from a function in this file : plugin_settings.php
Help, please !!July 10, 2019 at 10:58 am #16806developer vwthemeParticipantHi,
Thank You for choosing us!
Could you please recapitulate the issue you are having?
So that we could help you.
Little more information about the issue will help us to provide a better solution for you.
Thank You
July 11, 2019 at 7:34 am #16914Brugère CharlotteParticipantHi,
my issue is on category pages.
For the category “Produits locaux”, I have this : http://locavore-sologne.fr/category/produits-locaux
And that is not what I want ! After long searches I found that the template used on this page is “VW Page With Right Sidebar template” (instead of archive.php, the right template for category pages).
I also found that this problem does not always occur : for example, if you go to this category page : http://locavore-sologne.fr/category/produits-locaux/biere-sologne
I have understood that the choice of the template depends on the first post shown on the category page : if this post has a template defined, this template is also used for the category page, and that is obviously a bug in your theme.July 11, 2019 at 8:47 am #16920Brugère CharlotteParticipantI found a solution by adding the line
if ( is_category() ) { return $template; }
in the function public function view_project_template( $template )
Please answer me :
Is it possible to customize the theme (like I usually do by creating a child theme) ?
If it is not possible I need another theme.July 11, 2019 at 9:57 am #16925developer vwthemeParticipantHi,
You can make the child theme for the sirat mother theme.
Thank You.
July 12, 2019 at 11:39 am #17044Hussaini YakubuParticipantWhy am i been asked for another payment to edit the header of a theme I bought
July 13, 2019 at 11:39 am #17147developer vwthemeParticipantHi,
Thank You for choosing us!
Could you please recapitulate the issue you are having?
So that we could help you.
Little more information about the issue will help us to provide a better solution for you.
Thank You
-
AuthorPosts
- You must be logged in to reply to this topic.