How to display a product features dynamically with icons?
You can use the popular ACF plugin to dynamically add fields and field groups to the product page. Start with frequently asked questions.
You can use the popular ACF plugin to dynamically add fields and field groups to the product page. Start with frequently asked questions.
The filter hook you’re using is theme_<post type>_templates, which means that the <post type> part is dynamic and it’s the post type in which you want the custom template be added to the Template dropdown. So since the template is enabled for three post types, you would do so to add the template to the … Read more
Is there a way to use for example single.php base structure overriding only the inner content? The main content of pages and posts is output using the the_content() function. This can be filtered and changed by plugins using the the_content filter. However this only outputs the content entered into body of the editor. It does … Read more
Scan the files for a comment header that might have Template Name: Programs present. The template drop-down is populated by the comment header in files. I believe this is only true for files in the theme’s root folder and from a template sub-folder within the theme (if one exists).
If the element you are seeing can not be edited in Elementor, then this is part of the theme template. You should consider looking directly at the theme page template you are using on this page to solve. Nether the less, as per your question you can remove this globally using css. In your browser … Read more
Ok the issue was that the page slug was the same name as the post type. Changing the post type from ‘blog’ to ‘blogposts’ solved it.
You need to register a ‘rewrite endpoint’ using add_rewrite_endpoint(): <?php add_action( ‘init’, function() { add_rewrite_endpoint( ‘play’, EP_PERMALINK ); } ); Now, after flushing permalinks, in whatever template or code you’re using for your products you can check this to determine whether the /play version of the URL is being accessed: <?php if ( false !== … Read more
So, apparently I accidently copied the comment Template Name: Portfolio to my page.php as well, so when I selected the ‘portfolio’ template wordpress just picked page.php out of the two possible templates. May be a warning for other people that have this problem 🙂
Right now, the support for tagging media is pretty disappointing. You can add tags or categories to the attachment post type, but you’ll find the UI is unacceptably bad (it’s a text box where you enter terms separated by commas). There’s a plugin Media Tags that is decent though, so you might look into that. … Read more
Using body_class(), by default, WordPress adds classes like parent-pageid-43 to it. This only goes one level deep, though. The code below works for any ancestors of your parent pages, not just children. It relies on the is_page_or_ancestor plugin for that. As kaiser said, body classes are the way to go. You can define the name … Read more