How to insert HTML code below the menu

Posted in: Newsmag
Post count: 2

Hi all,

I’m new with WordPress and Newsmag, just switch from PHP (Laravel) developer. I want to insert some HTML code below the main menu, this code will be existed in all page.

I see header.php but edit it seems not work, explained here: https://forum.tagdiv.com/topic/override-header-php/

So, could you please tell me the way to archive it, using tagDiv composer?

Thank you

Post count: 35449

Hi,
If you want to edit the theme files then you need to edit this file -> wp-content/plugins/td-composer/legacy/Newsmag/header.php
Also it will be indicate to set the file in child theme to do not lose it when you’ll update the theme.
Thank you!

Post count: 2

Great! Thanks a lot Calin,

Had a quick explore, and now I know that I need to edit wp-content/plugins/td-composer/legacy/Newsmag/parts/header/header-menu.php , so, could you please tell me the way to use child theme solution to customize it?

I tried to install Newsmag-child theme, and place the edited version in wp-content/themes/Newsmag-child/parts/header/header-menu.php, but it didnt work

Thank you again, Calin

Post count: 35449

Hi,
According to our documentation the header-menu.php need to be set in child theme like this
wp-content/themes/Newsmag-child/parts/header/header-menu.php but there are also files that need t o be set in child theme, for example to make it easier, copy all files from wp-content/plugins/td-composer/legacy/Newsmag/parts/header in wp-content/themes/Newsmag-child/parts/header/ and edit the style that you want to use, also make sure that you have selected the child theme in WordPress -> https://i.imgur.com/GG50WUK.png
Hope this will help you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.