Top Bar: how to add code

Posted in: Newspaper
Post count: 11

Hi,

in the previous version of the theme(version 9), i had a file parts/header/top-widget.php on the child theme, that had a code to add some links before the social icons.
http://snap.ashampoo.com/uploads/2020-05-24/jKmkDNItIBiIgqV6IpR4HEEEAMPANruW5bcApKuXm5BSNxqwHdtpHXuiFEjtw7Kt.png

After the update to the latest theme version, they disappeared.

I looked at the api instructions here https://forum.tagdiv.com/api-top-bar-template-introduction/ but i dont find the td_config.php file and the instructions seem confusing.

Please advice.

  • This topic was modified 6 years by mediapath.
  • This topic was modified 6 years by mediapath.
Post count: 35449

Hi,

This file still can be find in out theme on this path -> wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-widget.phpalso this can be set now in child using our guide from here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Post count: 11

Hi,

When i edit the file directly on wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-widget.php i can see the changes but when i edit it on /wp-content/themes/Newspaper-child/parts/header/top-widget.php it doesn’t overwrite and i cannot see the changes.

Is there something else i should look out for?

Thanks

Post count: 35449

Hi,

This should work, just make sure that the child theme is activate and all the files required in top-widget.php, for example set the all files from header in child theme and check the results.

Thank you!

Post count: 11

I moved all the header files and it works. Thanks

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