how to change the templates for the generic django cms plugins? - django-cms

I want to change the output template or extend the template of the Text and Video plugins that are some of the generic Django CMS plugins.
how to do it?

Plugins use the Django template engine, this allows you to override any template at the project level.
So if the text plugin looks for a template in cms/plugins/text.html, you can override this template by adding cms/plugins/text.html in a folder that is on your TEMPLATES directory.

Related

Overriding MemberPress Template Files in Oxygen Builder via Plugin?

I want to override the MemberPress plugin's templates by following
https://docs.memberpress.com/article/165-how-to-override-template-files
But the problem is that I'm using Oxygen Builder which disables the WordPress themes so I can't copy the template folder to my child theme.
Is there a filter to change the MemberPress plugin template override path so I can override the templates from within a custom functionality plugin?
I have created a custom WordPress plugin to solve this problem.
This plugin is made for Oxygen Builder users where the theme is completely disabled. Simply add your customized MemberPress template files inside the [mepr_templates] directory in this plugin.
You can find the plugin here
https://github.com/Taimurian/oxygen-memberpress-support

Drupal 8 : How can I override module file in my custome theme

How can I override below file in my custom theme
web/modules/contrib/commerce/modules/checkout/templates/commerce-checkout-form--with-sidebar.html.twig
Anyone any idea ?
Try copy commerce-checkout-form--with-sidebar.html.twig from your contrib module and place it in templates folder in your custom theme.

Edit wordpress Shopp plugin to enable promo-code input

I want to enable a promo-code input box for the Shopp plugin on wordpress.
The documentation says that to get the promo box to show up I need to add the following PHP to the template file:
<?php shopp('cart','promo-code'); ?>
I am new to the wordpress CMS and do not know which template file this this should be added to / where to look. If anyone has done this I would really appreciate the details of where to add this PHP to enable the feature. All the tutorials focus on creating the promotions in the cpanel but do not cover turning on the promo input box with PHP.
Thank you.
This is a Theme API tag that is usually added to the shopping cart template file. When custom templates are setup in your theme the file is located somewheres around wp-content/themes/yourtheme/shopp/cart.php. Note that yourtheme represents the directory name of your active WordPress theme files.
Shopp has starter templates built in that you can copy to your theme files. Editing the template files in the Shopp plugin is not recommended because you will lose your changes with each upgrade.
You can copy the files from Shopp to your theme yourself, or you can use the built-in system for copying them. More information about these templates and how to install them into your theme for customization can be found in the Shopp User Guide documentation in the Theme Templates article.

How to have my page templates in sub folder Wordpress?

I am using a child theme. In the child theme I would like to have a subfolder for all my page templates, e.g. homepage-template, default-template, etc in /templates. How can I do this so that wordpress admin menu can still see them when I choose a template for a page?
Can you upgrade to WordPress 3.4? This is a native function of 3.4.
See: http://nacin.com/2012/03/29/page-templates-in-subdirectories-new-in-wordpress-3-4/
Create a folder with the name page-templates in your theme folder.
If you have already published pages with templates before having them under this sub-folder, you have to reselect the template page for these pages and click update.

Can I use wordpress templates on my own non-wordpress website?

Can I use wordpress templates on my own non-wordpress website?
Yes. You would have to replace all of the template tags and wordpress functions with static html or your own dynamic alternatives, but there is no reason why not.
Unless I suppose the theme has a license that prohibits it maybe.

Resources