- NewsmagHeader styles
- NewsmagHeader ads
- NewsmagtagDiv Composer Tutorial
- NewsmagCategory templates
- NewsmagSmart list ads
- NewsmagWeather Widget
- NewsmagInstagram widget
- NewsmagPage Menu
- NewsmagMain menu
- NewsmagTop bar templates
- NewsmagLogin – how to enable the user registration
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagCategory grid styles
- NewsmagCategory top post styles
- NewsmagHow category settings work
- NewsmagTheme colors introduction
Add this code :
@media (min-width: 1140px){
.td-business .td-header-style-1 .td-header-sp-logo {
width: 455px;}
}
I use 455px cause i noticed you logo size is 445px, you can make as wide as you wish. if it does not work, just add !important after the width value.
hi catalin,
I have successfully removed the shadow in the home page with this code:
.td-newsmag-magazine .tdc-content-wrap,
.td-newsmag-magazine .td-post-template-default,
.td-newsmag-magazine .td-category-header .td-container,
.td-newsmag-magazine .td-category-container {
box-shadow: none;
}
So, now the problem is just tap menu if the open through the mobile device does not fit in the middle. Please banutuan ya, thanks.
Hello catalin,
now there is no gap, it turns out there is a margin at the top and I have removed.
The problem is now, I added padding so that the menu part of my website is wider, the code I use:
.td-newsmag-magazine .td-header-menu-wrap{
margin-top: 0;
}
.td-header-main-menu{
padding: 10px;
}
.td-header-sp-rec{
padding-top: 20px;
I managed to make it, but if opened with the mobile device my website logo does not fit in the middle. how to handle it Catalin?
this is a screenshot of the desktop: http://prntscr.com/ieizaz
and this screenshot from mobile: http://prntscr.com/ieiymx
The second question
how to remove shadow on my website homepage. please check my website.
Here’s the screenshot: http://prntscr.com/iej0h6
Please help, and before thank you Catalin.
Hi,
That black color is coming from the demo. It is predefined in the demo stylesheet
– https://www.screencast.com/t/cAANl3sO53
A solution would be to remove that color from the mentioned location. Then the theme panel set color will apply
– https://www.screencast.com/t/ryqb5HQDk1
Or you could modify it to a desired color in the same location. Or use a code to override it (custom code can be entered in Theme panel-Custom CSS)
– https://www.screencast.com/t/r03d3lp1RG
.td-gadgets .td-header-style-5 .sf-menu > li > a:hover {
color: yellow;
}
Thanks
Hello,
The theme files can be requested from outside WordPress, generating a server error (HTTP 500).
Try to access to: http://yoursite/wp-content/themes/Newspaper/index.php
If you access directly to he theme files, the get_header function is not defined, so PHP returns an error: PHP Fatal error: Call to undefined function get_header().
Example: http://yoursite/wp-content/theme/Newspaper/index.php
Maybe the code could check for WordPress environment like this:
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
Another solution to prevent directly access to plugin and theme code is this:
# Restrict access to PHP files from plugin and theme directories
RewriteCond %{REQUEST_URI} !^/wp-content/plugins/file/to/exclude\.php
RewriteCond %{REQUEST_URI} !^/wp-content/plugins/directory/to/exclude/
RewriteRule wp-content/plugins/(.*\.php)$ – [R=404,L]
RewriteCond %{REQUEST_URI} !^/wp-content/themes/file/to/exclude\.php
RewriteCond %{REQUEST_URI} !^/wp-content/themes/directory/to/exclude/
RewriteRule wp-content/themes/(.*\.php)$ – [R=404,L]
Hi,
That is unusual, the header is the same on all pages of the website, so the header ad should appear accordingly. Unless maybe the ad code or implementation has restrictions of some kind.
If you could provide a link to your website we will take a look.
Thanks
Hi,
The head tags and opening body tag are located in the header.php file, located in the main theme folder
– https://www.screencast.com/t/elSsWx6sV
The closing body tag is located in the footer.php file
– https://www.screencast.com/t/UCvJH6x27s
Copy these files in the child theme if needed and enter the code there.
Thanks
Hi,
We could try a more general code and see if it works for you. Something like this
– https://www.screencast.com/t/QgFM5nt3fU9u
The code will add a border bottom to the top menu and main menu, all the values in the code can be changed (border size, style and color)
.td-header-menu-wrap,
.td-header-top-menu-full {
border-bottom: 5px solid red;
}
Custom codes such as this can be entered in the Theme panel->Custom CSS section. Try it and see if it works properly.
Such customization can easily be done with the browser inspector tool. Inspect the location you want to customize and identify the elements used. Then create custom code. This is a guide in the matter with some examples
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
If the code does not work for you, please mention the header style used, it might need modifications.
Thanks
You can copy the code from top of woocommerce template into the td version. Often the template change is minor and many times i found only change was version header, which causes useless warning.
Hello, I want the tap part of my website menu look rather big, then I add the code in costum CSS:
.td-header-main-menu{
padding: 10px;
}
.td-header-sp-rec{
padding-top: 20px;
but it turns out if opened through the mobile device logonya cut off. How to solve it for logo + mobile-toggle + search button is back in the middle. But if opened through the desktop the menu part is still the same as I want above.
my website: https://www.rudiberbagi.com
this screenshot in the desktop: http://prntscr.com/iebqz8
and this screenshot in mobile device:http://prntscr.com/iebrjt
please help me, thank you.
Copy/paste this code to replace the old one
.td-business .td-header-style-1 .td-header-sp-logo {
float: left !important;
margin: 25px 15px 0 0 !important;
}
.td-header-wrap .td-header-menu-wrap-full {
height: 45px !important;
}
ul.sf-menu>.td-menu-item>a {
line-height: 45px !important;
}
@media (min-width: 768px) {
.header-search-wrap #td-header-search-button .td-icon-search {
line-height: 45px !important;}
}
@media (min-width: 767px){
.td-business .td-header-style-1 .td-header-sp-recs {
margin: 27px 0 28px 0 !important;}
}
To move the logo to left side, Go to your theme panel > custom code > custom css then paste this code there :
.td-business .td-header-style-1 .td-header-sp-logo {
float: left;
margin: 5px 15px 0 0;
}
To change the main menu height, pase this code in your custom code section :
.td-header-wrap .td-header-menu-wrap-full {
height: 45px !important;
}
ul.sf-menu>.td-menu-item>a {
line-height: 45px;
}
@media (min-width: 768px) {
.header-search-wrap #td-header-search-button .td-icon-search {
line-height: 45px;}
}
I’ve managed to get the header ad to show up on the homepage but when i open a post that header ad is missing
can you tell me the steps on how to solve this?
thanks.
@ds-2, Go to your theme panel > custom code > custom css then paste this code there :
.td-business .td-header-style-1 .td-header-sp-logo {
float: left;
margin: 5px 15px 0 0;
}
Hi Simion
Already remove and test it… But same problem. Something happens, if I scroll page up on header. Look the code which change… Do you need access on admin?
Hi,
I have used Mega menu for 2 links in the header, which works fine in desktop, but on mobile the mega menu links are just texts without the links. Please check: https://themoviean.com
I mean I want to make certain menu items of header menu to be shown only on mobile device. Please help.
Hi,
The parameters seem top be configured properly, a thing to note is that the theme currently supports PHP versions up to 7.1, higher versions can cause issues. We will provide support for 7.2 in the coming theme update.
That could be the cause of the error. If changing the PHP version does not solve the problem you could try the solutions from these topics
– https://forum.tagdiv.com/topic/call-to-undefined-function-get_header/
– https://forum.tagdiv.com/topic/apache-error-log/
Let us know the results.
Thanks
@Bogdan B. Using Header style 12 with the local news demo, my search and social media icons appear like this even with cache cleared http://prntscr.com/idtrzf. I was forced to use some custom CSS to reposition them. Try to inspect the site (URL is in my profile) and remove the code in the inspector for both icons and see. It looks something like this
@media (min-width: 768px) {
.td-icon-search {
margin-top: -12px;
}
.td-header-sp-top-widget {
margin-top: 11px;
}
}
Salut,
Limba oficiala pe forum este Engleza asa ca o sa raspund in Engleza ca si restul utilizatorilor care dau de acest topic sa poata gasi solutia.
1. Please read this topic: https://forum.tagdiv.com/topic/call-to-undefined-function-get_header/
2. Please read this forum topic: https://forum.tagdiv.com/topic/pictures-keep-going-back-in-medias/
Thank you!
Hello,
I’m trying to add a featured video like hte guide on this forum shows but I get an error for the post.
Here is the error:
Warning: Invalid argument supplied for foreach() in /home4/amerikal/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_video_support.php on line 305
Warning: Cannot modify header information – headers already sent by (output started at /home4/amerikal/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_video_support.php:305) in /home4/amerikal/public_html/wp-admin/post.php on line 198
Warning: Cannot modify header information – headers already sent by (output started at /home4/amerikal/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_video_support.php:305) in /home4/amerikal/public_html/wp-includes/pluggable.php on line 1216
Any suggestions?
Thanks
when I try to open the tagdiv composer I see only white screen which tries to load and load and load, but NOT loading. Some element of the background are clickable.
in console i have 1 error:
12-Feb-2018 13:38:12 Europe/Warsaw] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /home/nietylkogry/public_html/wp-content/themes/Newspaper/index.php:6
Stack trace:
0
thrown in /home/nietylkogry/public_html/wp-content/themes/Newspaper/index.php on line 6
Hello,
The header for the business demo has a custom implementation that will set the logo to the right position. It is a demo specific style. If you want to move it back ,you will have to remove this code: https://www.screencast.com/t/jnAKMuCirh
Thank you!
Hi,
1. From what I can see the website is missing the header section, I cannot even see the menu
– https://www.screencast.com/t/b0SO4uvrA9E
The current header structure is not coming from the theme
– https://www.screencast.com/t/t3I96vXsWvQs
Maybe there have been modifications made to the theme header style files directly or through a child theme. You could check if that is the case.
2. The block titles seem to have a white background color, that is what makes them invisible
– https://www.screencast.com/t/B9SVlQZH2
Edit the page with the composer and change the title background color, also check the general header background color set in the theme panel
– https://www.screencast.com/t/0fNQODVe9F0
3. Same here, check the widget settings or the general color set in the theme panel.
Ultimately you could try a theme reinstall, maybe there were problems when installing or migrating the website
– https://forum.tagdiv.com/install-via-ftp/
Thanks
Hi,
I believe you are referring to this gradient in the header
– https://www.screencast.com/t/wXIm0rDmQnK
That could be removed with a code like this if needed
– https://www.screencast.com/t/a6UQpfijqOB
.td-header-gradient:before {
display: none;
}
Thanks