Even though Gutenberg hag a 'widget' to add Blog Posts to your page, I need custom HTML wrapping this widget. Can anyone point me to a way to add a Custom block-pattern or how to create / modify the Blog post widget?
It's important that adding the blog post section / widget to a Page is user friendly, so preferrably no shortcodes etc...
PS, as you may have noticed, I have only been developing for block-patterns and blocks for a couple of days
Thanks!
Related
I purchased divi, it's a great 'drag and drop' builder to build page layouts.
However, on wooCommerce product pages, the 'use divi builder' button is not there.
Does anyone know the internal workings of the plugin well enough to allow for the button to appear on the product pages.
I did contact their support, but they don't seem to want to answer harder questions.
You can easily integrate the Divi builder into Woocommerce or any other custom post type for that matter with a small code snippet which can be added to your Theme's functions file. Remember to use a child theme whenever customizing theme core files such as the functions.php file as we will be.
If you are not familiar with a WordPress Child Theme you can always use one of my prefered plugins when in a crunch for time. Child Theme Creator by Orbisius
Here is the snippet to add woocommerce to the child theme, I also added a second custom post type to further show you how this example works.
// Begin Adding Divi Builder Support to Custom Post Type
function my_et_builder_post_types( $post_types ) {
$post_types[] = 'product'; // This is the name of the Woocommerce custom post type
$post_types[] = 'latest_news'; // My own custom post type I have added to my website.
return $post_types;
}
add_filter( 'et_builder_post_types', 'my_et_builder_post_types' );
// End Adding Divi Builder Support to Course Post Type
So what have we done here?
1st. We created our function
2nd. We specified our post types we want added
3rd. We added our new filter
There you have it, its that simple. This will allow you to better layout your description content on your woocommerce product pages.
I know that this answer is much down the timeline but I think it will be helpful for others who are trying to achieve the same thing.
This Elegant themes blog post describes a solution, the
Divi Commerce Plugin
and here is the link to Bolt Themes
Enjoy.
The Divi builder can't be activated on product pages. This feature is not supported.
This is with the Divi builder plugin and the Divi theme itself.
I personally feel that you will be using product / page functionality of you had Divi active on the single product pages.
From a user experience you will be loosing the direction to getting a client to add the product and checkout as the page will be out completely.
Use Divi for your main pages and marketing, keep the WooCommerce pages for the products!
I currently have About and Contact section. Now I would like to add News section but is it possible to add posts directly there without it showing on your blog's front page? Thank you! ^_^
You can create custom pages which are effectively a single post and add as much content to them as you want and keep adding/editing content as you go.
The other alternative is to tag posts with 'news' and then link to those posts via the navigation.
So
http://your.tumblr.com/tagged/news
However you cannot hide these posts from your main blog without using a pretty big hack.
So I'm creating a small plugin for Wordpress that will require a custom menu page on the dashboard admin sidebar. I created the function that creates the page and menu with the icon, but realized that it will actually need to be set up like the Posts or Pages menu items where you have the option of switching out the featured image/video.
So it would have the option to see the list of created "posts" or add a new one. I've tried to find a tutorial that at least describes where to go in the codex that describes this, but I'm not finding a tutorial or a location in the Wordpress codex that describes creating something like a "post" or "pages" menu/with the needed sub menus. I would appreciate it if anyone could share a tutorial for this if they found one or the location for this in the Wordpress codex if the actually know its direct location? Thanks!
I have recently started working with Wordpress, and I use the HTML Snippets plug-in to fill in the contents of each page. This works well until I hit the blog page. My blog page does not take anything from the page editor, so I can neither paste code snippets nor write anything in the WP page editor field. It only responds to posts. As a result, I am unable to add anything static to my blog page. Also, editing the template post_list file also leads to damaging the template.
How do I go about adding static elements to my blog page?
Essentially it sounds like you're wanting to add a page template to your theme, which you can then assign as your 'Posts' page through the Wordpress admin.
The question itself is rather too broad to answer without an attempt at coding it yourself, but you can read more about it on the codex: http://codex.wordpress.org/Page_Templates#Creating_a_Page_Template
In the wordpress reading settings, where you set your "blog" page to post page,
even if I create a custom template for the blog - or add addition text/custom fields etc.
nothing seems to appear....
as far i understood , those will be ignored... as it is set static...
is there a other way, to create a custom page ("blog"), where you can add all those post into this page , style them, add text as well
If you're asking, how can I make a page of posts then there are many answers to this question. I personally ended up using these 2 plugins:
Pages Posts (which lets you present posts of a specific category or tag on a page)
Simply Exclude (Lets you selectively exclude categories and tags from page)
both can be installed via the plugins search