(This is the script from the video)
Removing and replacing actions in Dynamik Website Builder
In this tutorial I’m going to show you how to remove the…
- Header
- Breadcrumbs
- and Post title
We’ll also reposition the post info.
To do this we’ll use Dynamik Website Builder‘s Hookboxes and Labels functions.
Because we’re using labels we can remove these elements on a page by page basis. After making our hookboxes and labels, all we need to do is select a tick box before we save or update our pages and posts.
I’ve got WordPress open so let’s get started making the code.
To remove the header we need to remove three pieces of code…
- Header markup open
- Header
- Header markup close
The hook we use is: wp_head
To remove the footer we need to remove three pieces of code…
- Footer markup open
- Footer
- Footer markup close
The hook we use is: wp_head
To remove the Breadcrumbs find the section labelled
Misc before Loop…
- Breadcrumbs
The hook we use is: wp_head
To remove the Post Title find the section labelled
HTML5 Loop…
- Post title
The hook we use is: wp_head
To reposition Post info find the section labelled
HTML5 Loop…
- Post info
The hook we use is: wp_head
As you can see removing or repositioning individual elements of your site is easy if you’re using Dynamik Website builder.
In this video we removed some elements using the remove_action function.
We also moved the post info down the page to display in the same area as the post meta. First we removed the post info from its current hook and then added it back on a different hook.
And best of all the “PHP Builder” tool wrote all the code for us.
Why not give it a try, with a bit of practice it’s surprising what you can do.