Add custom shortcode in newspaper header and single page

Posted in: Newspaper
Post count: 2

Hi,

I need to add a custom shortcodes in the header’s td-header-style-11 div.
And in blog’s details/single page.
Which files to edit to do these?

Thanks.

Post count: 2

edit: the newspaper theme version is: 10.3 using the child theme included.

Post count: 35449

Hi,

Usually you can achieve all you need using a header for tagDiv Cloud library, these can be edited using tagDiv Composer.

If you are using a classic/standard header, then you need to set the code in this file -> wp-content/plugins/td-standard-pack/Newspaper/header.php

Hope this will help you!
Thank you!

Post count: 11

Hi, I’m using a classic/standard header and I want to add some html code. I tried to modify header.php file in the theme file but It doesn’t work. I searched in the plugin, but I didn’t find the tags which appears in the frontend. Where can I add this code?
Thanks

  • This reply was modified 6 years by villu.
Post count: 35449

Hi,

I think that the problem is that you do not edit the right header.php file, please try the file on this path -> wp-content/plugins/td-standard-pack/Newspaper/header.php
Also it will be recommended to set the file in a child theme, in this way the changes will not be remove when you’ll update the theme.
-> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Post count: 11

Hi, I did it as you said, but I have a critical error in wordpress when I add a header-style-6.php file to the child theme. I checked the path and is ok: “/wp-content/themes/Newspaper-child-test/parts/header”.
The error in console is: “Failed to load resource: the server responded with a status of 500 (Internal Server Error)”.
Do you know why it’s happening?
Thanks

Post count: 35449

Hi villu,

What you can do is to copy all file from header in child theme, if the problem persists, try the above steps:

Please make sure that all the settings are like in our requirements, please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.

If the problem still persist please check these guides for Generally 500 errors are internal server errors – https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/
https://wordpress.stackexchange.com/questions/312292/how-to-stop-a-500-error-on-the-wordpress-theme-folder
https://wordpress.org/support/topic/google-search-console-reporting-a-500-error-on-my-theme-folder/
-> https://forum.tagdiv.com/topic/wp-supercache-causes-500-internal-error-and-cannot-deactivate/

Let me know the results!
Thank you!

Post count: 11

Hi, looks like is working copying all header file. Thank you so much

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