I need to use AMP technology with specific pages in my Drupal website.
I know that I can use AMP module("AMP can be enabled for any node type. At that point, AMP content becomes available on URLs such as ?amp").
But I can't understand what i should do. Should I use two themes, first for AMP pages and second for non amp, or i need only one theme, that would work for all pages(amp and not amp)? Or I can use my non-AMP theme and just add AMP module for some nodes?
I would like to save my theme and just change some nodes to amp
There is an AMP theme that goes with the AMP module: https://www.drupal.org/project/amptheme. just install and enable (does not need to be the default theme). The AMP module does the switching for you.
Checkout:
https://www.lullabot.com/articles/how-to-try-out-amp-with-drupal
Yes, there is an Amptheme available which goes with AMP module as #stevegmag said https://www.drupal.org/project/amptheme. Also, you can create your own custom theme for AMP pages and give that the same look and feel as you have for non-amp pages.
Related
I purchased a wordpress theme as shown in the url here https://seosight.crumina.net/. Since then i have changed my mind and browsed for ready made templates and happy with the template located here https://themes.semicolonweb.com/html/canvas/demo-seo.html
However, since i purchased the theme, can i buy and push the templates in the existing themes with minimal work or do i need a wordpress developer?
The short answer: no, you can't.
The themes aren't only a PHP template. The also have css and JavaScript files. And also some php custom functions.
The best way to replicate the page you like is with a designer, like Elementor, Divi, Oxygen, etc. Or better yet, with a developer :)
I am using a AMP plugin which integrated in the themes named Newspaper,
but this AMP plugin do not support in keeping user browsing on AMP version users navigate to other articles. Can any body help? I find the function is_amp_endpoint() but I dont know how to use it in the case?
AMP Sidebar can help you, i.e. https://amp.dev/documentation/components/amp-sidebar/
Example: https://gist.github.com/debabratakarfa/bbeb4d5c681290078def38e07b9af2b0
I'm new to wordpress, and I want to know if it is possible to put a theme bought on shapedtheme.com for example on an existing wordpress.
And if so, how to do it. I don't know where to put the code of the theme. I saw the wordpress page builder with text, but I see tags with [] and not <>.
I saw on this thread that pages can be linked to php files. I don't see how.
I have full access to the hosting service's filesystem and can see all wordpress files.
I would also like to transpose the theme header and footer and if possible, use the theme cards to adapt to blog articles written in wordpress.
How can I do this ?
I searched for tutorials on google or related threads on SO with no luck.
Any ressource would be appreciated.
Thanks to anyone who will take the time to read/answer this post.
No, you can't use a non-WordPress theme in a WordPress installation since WordPress will look for specific templates and pass certain objects to the template to be displayed.
You could adapt it to work with WordPress, though. Here's the theming guide to get you started.
But you'll probably be able to find a WordPress-ready theme with the features you want. This is the WordPress theme directory link for themes using bootstrap.
Unless you go for a from-scratch development of a pure php theme, and you need some level of theme customization I'd strongly suggest looking into child themes, as it'll allow you to update the base theme minimizing the changes you'd have to do to yours.
The [ ] syntax you mention are shortcodes, small, safe php functions that can be executed by inserting them in the editor, templates, etc, and provide kind of an api that exposes WordPress or plugins functionality.
And regarding your link, OP already has a WordPress theme, but is looking for a way of using a different, specialized template on specific pages. This template still has to follow to certain WordPress conventions.
I have a drupal website with amp module.
How i can make to switch 2 different menu, one for AMP version and one for normal version?
I'm trying to put this expression: /*?amp but dosent work
/*?amp just give you the view of the AMP page of the current node if it exists.
I would suggest you to use AMP module. Which will also add required library and theme needed for it.
Now you can create a sub theme for AMP having AMP Theme as a base theme of it.
now just you have to create a Specific AMP menu and placed it to the region defined under your custom theme and visiting on AMP page you will able to see your AMP specific menu.
Please let me know if you need more information related to it.
I installed woocommerce and the product data tabs are invisible because of a bootstrap style conflict.
I don't know why wordpress takes enqueued styles and applies them to the admin panel.
How do I prevent an enqueued style from being applied to wp-admin?
I can assure you WooCommerce does not use nor load Twitter Bootstrap in either front-end or back-end of WordPress. In fact, in order to wrap WooCommerce templates in Twitter Bootstrap classes, one would need to install a special plugin for it: WooCommerce TwitterBootstrap (which looks abandoned).
It must be some other plugin that's loading it. Are you sure it's Twitter Bootstrap that's causing the conflict? Please note there are a lot of WooCommerce extensions which are in fact separate plugins.
You can view a full list of installed plugins in WordPress dashboard. If you want to find the culprit, disable them one by one.
By default, WooCommerce plugin doesn't use Bootstrap and shouldn't load the styles or scripts in your WordPress dashboard.
You have a plugin or theme that make it to load the Bootstrap framework in your WordPress. Try to disable the active plugins one by one or check in their source code which styles or scripts they load. I will suggest to check the functions.php file of your theme too.