Hi Catalin,
I know how to change the font size and did it exactly as you did above, but it’s not responding. The font size remains the same. I’ve emptied out the cache etc, but the font size will not cooperate.
Any other suggestions? Thanks in advance 🙂
Hi Bogdan,
I tried the code you provided above, but it rendered a 404 page.
I went back and checked the URL and it turns out capital letters matter!
mysite/wp-content/themes/Newspaper/ with capital N in Newspaper redirects back to my home page
mysite/wp-content/themes/newspaper/ with lower case n renders a 404 error!
Bogdan, your code does work. Thanks!
Cheers guys
-
This reply was modified 9 years by
MESOTU.
Hi guys,
Ok, I found another solution here, similar to above but simpler. Since nobody should be accessing your theme’s index.php directly (it’s probably a ‘bot), you can just kill the process and save the resources that a redirect would require.
This worked well and resulted in resolution of the internal server error with Google Webmaster Tools. Score!
<?php
if (function_exists(‘get_header’)) {
get_header();
} else {
die();
}
?>
Hi Bogdan,
According to the link you’ve provided, the suggested code to fix this is:
if (function_exists(‘get_header’)) {
get_header();
}else{
/* Redirect browser */
header(“Location: http://” . $_SERVER[‘HTTP_HOST’] . “”);
/* Make sure that code below does not get executed when we redirect. */
exit;
}; ?>
I’m using an SSL certificate so my site is served through HTTPS protocol. I’m wondering if I’d need to make sure the bit (“Location: http://” . $_SERVER[‘HTTP_HOST’]) would need to be https and HTTPS_HOST?
Thanks in advance.
Hi Bogdan,
For my part, I’m not interested in the Google DFP bit. Just the header. I’ll check out the link you’ve provided and let you know how I go.
Love your work.
Cheers amigo
Message 2 following on from above:
Checking the error log in /public_html/mysite/wp-content/themes/Newspaper/error_log, I’m still getting the following error after updating to Newspaper 7.7.
[24-Feb-2017 03:57:40 UTC] PHP Fatal error: Call to undefined function get_header() in /home/dbs/public_html/mysite/wp-content/themes/Newspaper/index.php on line 6
Hope this helps guys. Love your theme despite the occasional hiccup 🙂
Cheers
Hi Bogdan,
I am also having the same internal server error as Erythros. My first reaction was to contact my hosting company about this and their response was as follows:
It looks like there is an error with the theme itself:
[23-Feb-2017 04:08:04 UTC] PHP Fatal error: Call to undefined function get_header() in
/wp-content/themes/Newspaper/index.php on line 6
I have the latest update 7.7 installed and I’m still getting the same 500 response code as I got with Newspaper 7.6. I did not have this occur with any earlier themes.
So you’re suggesting it’s a server side issue and my hosting company says it’s a theme issue. Not sure where to go from here. Hopefully the above information is helpful in some way.
Kind regards
Hi @gos_ant,
I’m already using a security plugin and have a few security measures in place, but am curious to know how these links are being generated in the first place. I notice the ending has feed/rss2 on it. I’d like to understand and fix the problem and not just rely on a plugin.
I’m curious if the developers of the Newspaper theme have any ideas how this could be happening.
Cheers
I don’t want to use the mobile plugin, but I have installed it just to see if I can get rid of the “Click here – to use the wp menu builder.” at the bottom, but it does not go away even when I assign my new menus in the theme panel under mobile plugin settings.
Hi Bogdan,
I have completely deleted the demo menus and created my own new menus. But I am still seeing the following message on mobile (responsive view, not the theme, which I don’t want to use):
Click here – to use the wp menu builder.
I have no idea how to get rid of this. Would welcome any suggestions.
Kind regards 🙂
Hi guys,
The latest download I have for version 7.5 only contains Visual Composer 4.12 and not version 5.0. I think version 5.0 is released but just wondering when this will be bundled with the next version of Newspaper.
Thanks 🙂
Hi John,
Thanks for your question. I deleted the theme from my hosting account cPanel. I made a backup copy to a different folder and restored it quickly when I botched it the first couple times (stupid coding error on my part).
I did the following steps if you want the play by play:
1) Make sure you have full access to your hosting cPanel account.
2) Go to your domain folder (public_html/john) and create a temp folder there. I just created a folder named temp_copy so it would be public_html/john/temp_copy.
3) Then I went to my wp-content/themes/ folder, highlighted Newspaper, right clicked, chose “copy” and then when it asked me where I wanted the copy to go, I made sure it said public_html/john/temp_copy.
4) Then go to your temp folder and you’ll see Newspaper there. Rename it Newspaper_73. Now you’ve got your copy that DEFINITELY works.
5) Then go to your WordPress dashboard/appearances/themes and choose another theme.
6) Go back to your hosting account cPanel, delete Newspaper from your wp-content/themes folder.
7) Go back to WordPress dashboard and upload Newspaper 7.5. Or you can upload the .zip file and deploy it in your themes folder via cPanel (or FTP).
8) I then went back to WordPress and activated Newspaper 7.5
9) When I broke my site the first couple times due to my own coding mistake, I was able to quickly delete the broken 7.5 theme and then do a restore of 7.3 from my temp file (using the same method as in step 3 above).
Hope this helps!
Cheers
Thanks Bogdan,
I’m really impressed with you guys and the great work you do. I figured it out. It was a single comma that was breaking the theme! I did a bit of trouble shooting on a subdomain so I wouldn’t break the main site. I got 7.5 working and the customisations I wanted. Keep up the good work amigo!
Cheers!!
Hi Bogdan,
I choose not to use the mobile theme plugin since I don’t like how it renders.
What would be the changes I’d need to make to this code in order to keep my custom menu?
(From: https://forum.tagdiv.com/topic/where-do-i-edit-the-mobile-menus-options/)
4. You can make a add a new menu for mobile only editing theme’s code as follows:
– edit td_menu.php and add this line of code here: http://screencast.com/t/Rf59isOchm
‘custom-menu’ => ‘Custom menu for mobiles’
– edit menu-mobile.php and add thei code here: http://screencast.com/t/ybU3TZ4yLhvu
wp_nav_menu(array(
‘theme_location’ => ‘custom-menu’,
‘menu_class’=> ‘td-mobile-main-menu’,
‘fallback_cb’ => ‘td_wp_no_mobile_menu’,
‘link_after’ => ”,
‘walker’ => new td_walker_mobile_menu()
));
Thanks in advance guys. Love your work.
Cheers
Hi guys,
I think I figured out the problem. I had previously created a custom menu so I could add some additional items to my mobile menu (here’s what I did: https://forum.tagdiv.com/topic/where-do-i-edit-the-mobile-menus-options/)
I modified td_menu.php and menu-mobile.php before installing and that appears to have broken the theme. When I uploaded 7.5 out of the box, it worked, but when I added in my customisations, it broke the theme again.
So my question now is how do I add custom menu by modifying td_menu.php and menu-mobile.php. I think these were modified since 7.3 so these customisations are no longer valid.
Thanks
More information:
I also tried uploading 7.5 to my theme folder via the cPanel and, once activated, it still broke both my website and my WP dashboard.
Is there a way for me to just manually upload the changed files from 7.3 to 7.5?
I know there were quite a few modified files and new files, so I’m not sure how feasible this is.
I’m using WP Rocket Cache plugin with Stackpath CDN. Would these play a role in this problem?
I’m also using the Newspaper child theme but wondering if there were any changes in this from 7.3 to 7.4?
I also tried uploading the theme to a different website and it also broke the site and the WP dashboard (i.e., just a white screen with no way to access anything).
Thanks in advance.
I have not seen any official word on this topic from TagDiv. I got the same message. As for FTP via FileZilla, I keep trying to download it from the offical site and Avast keeps flagging it as malware (grrr!). I thought about doing the patch instead of the full install and can see how that would get time consuming and cumbersome.
Is the issue due to an incompatibility in the latest WP release and the theme?
Cheers
Hi guys,
Message 2 here. I have taken the CSS code from the child theme style.css and moved it into the theme settings custom code tab and that seems to have fixed this.
Just for my own learning, is it better to have the custom CSS in the theme panel? Is there any reason why the CSS in the child theme would not render on a mobile?
Thanks.
Hi Andrei,
I think I figured it out. I’ll get back to you if I get stuck on anything. Cheers
Edit: It worked great! I would suggest including this in your updated documentation. Very helpful 🙂
-
This reply was modified 9 years by
MESOTU.
Hi Andrei,
This is helpful. Is there a way to add some of the items from the top bar nav menu in the custom mobile menu? I don’t need to change the structure. I just want to make sure I can get some of the top nav items in the mobile menu.
Thank you very much.
Hi Catalin,
Thanks for this. I have added this code and it appears to have resolved the desktop/laptop browser issue. But when I look at an article on my Android phone, it is still rendering broken and disjointed as before.
I added the code as follows:
.td-post-author-name div {
display:inline!important;
}
I am not using the mobile theme by choice. I just want my site to use the regular responsive feature.
Is there any additional CSS coding I could use to force it to fix it in android?
I have emptied the cache after the change and emptied the cache in all browsers, but still no luck on the android side of things.
Thank you very much for your help.
Kind regards
-
This reply was modified 10 years by
MESOTU.
The other thing I needed to mention is that this is still happening on a laptop in normal browsers so it does not appear to be isolated to a narrow screen/responsive issue.
Thanks 🙂
Hi Bogdan,
Thanks for your reply. Unfortunately, this did not fix the problem for me. I am not using the mobile theme. It is mainly happening on my mobile when in responsive mode (not the mobile plugin).
Also, is the code above correct? I notice there is a space between .td-post-author-name and div. Is it just supposed to be .td-post-author-name { display:inline; } ?
Thanks again for your help.
Most appreciated!
