Secondary big slide module

Posted in: Newspaper
Post count: 388

Hi,

I edited td_module_slide_big.php in a child theme so I could give it my own list of posts (different kind of query from the ones normally offered). But what if I don’t want to overwrite it? How can I duplicate the module instead, put my edits in the copy, and add it to the VC panel?

Thanks!

Post count: 6600

Hi,

Sorry for the delay!
You can do this by adding you custom module and custom block flies to the module and shortcodes folder then edit the td_wordpress_booster file and register them like this: http://screencast.com/t/zT5bj2zFyecJ
You have blow the line you need to use, just change the file names.

locate_template('includes/modules/td_module_10.php', true);

require_once('shortcodes/td_block_10.php');

After this you can add the new block on the page using the page builder – http://screencast.com/t/uk0vrRrsw7
You also need style the new block using css (add the css inside Theme Panel -> Custom CSS).
Hope this helps!

Thanks

Post count: 388

Thank you! I’ll let you know how that goes and if I need any more help. 🙂

Post count: 388

Quick question: can td_wordpres_booster.php be edited in a child theme?

Post count: 6600

Hi,

Unfortunately the td_wordpres_booster.php file isn’t editable via child theme, only the files listed in the documentation can be edited using the child theme: https://forum.tagdiv.com/child-theme-documentation/

Sorry for this, thanks for the message!

  • This reply was modified 11 years by Lucian.
Post count: 388

Ah, okay. Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.