- 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
I’ve added this code for my multilingual switcher, next to the search bar, but it’s not being displayed at all (this div even doesn’t appear in the source code). What should I do?
<div class="td-search-wrapper">
<div id="td-top-search">
<!-- Search -->
<div class="header-search-wrap">
<div class="dropdown header-search">
<!--<i class="td-icon-search"></i>-->
<div class="td-icon-lang"> <?php
$languages = icl_get_languages('skip_missing=0&orderby=code');
$html .= '<i class="td-icon-search"></i>';
$html .= '';
if(!empty($languages)){
foreach($languages as $l){
// if(!$l['active']) $html .= '';
if(!$l['active']) $html .= '';
// if(!$l['active']) $html .= '';
}
}
echo $html;
?></span>
</div>
</div>
</div>
</div>
Hello all,
I personally think the Newspaper theme is the best theme out there for publishers. It is fully loaded with features and is highly customizable.
The loading speed of a website can make or break the success of a site. You can have awesome content and a similar site can have mediocre content, but if your pages load extremely slowly and your competition’s pages load extremely fast, your competition is more likely to get the traffic and not you. Google likes fast pages.
Fortunately, there are some ideas to score 100/100 PageSpeed.
Use –
WP Super Cache plugin
CloudFlare – use rocket loader
.htaccess code
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
ExpiresByType font/truetype "access plus 604800 seconds"
ExpiresByType font/opentype "access plus 604800 seconds"
ExpiresByType application/x-font-woff "access plus 604800 seconds"
ExpiresByType image/svg+xml "access plus 604800 seconds"
ExpiresByType application/vnd.ms-fontobject "access plus 604800 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers
<IfModule mod_deflate.c>
<filesMatch "\.(js|css|woff|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
<IfModule mod_mime.c>
<FilesMatch "\.html\.gz$">
ForceType text/html
FileETag None
</FilesMatch>
AddEncoding gzip .gz
AddType text/html .gz
</IfModule>
Output results will amaze you!!
Read full detailed tutorial here – https://goo.gl/e6pVWs
Thanks for reading.
have a nice time ahead 🙂
My website URL is http://americanbettingsite.com
I find that my logo gets really blurry when users scroll down. I wouldn’t mind having it so that the header does not minimize but in fact stays the same size as you scroll down.
Thanks again for the help.
Lucas
But how do I add the code I need into to the header.php file? Do I have to have Adobe Dreamweaver or some type of software like that, or can I just open it up and paste it in?
I understand what coding is, I just need to be able to get to that point.
Hopefully that makes sense.
Best,
Justin
Hello, i’m trying to make it so that each category (using style 8) has their own category image. I can’t find this in the documentation so I attempted adding this CSS
.category-"category slug" .td_category_template_8 .td-category-header {
background-image: url("IMG URL");
}
it’s not working though. So how would I change it?
Also how would I add a box of text (different for each category) between td-category-header and td-main-content-wrap.
Thank you for the great theme!
Hi again.
Why I asked for modification in Newspaper Theme 7.4 in this Thread?
To prevent unwanted Spam Users to Register. The inbuilt Login / Register function has no option for including Captchas or other Plugins to check if this is a real User. So for me it is to unsecure to use this function.
After a long ride a found a Solution which fullfills my needs when I modified the Code in following folder:
/Newspaper/parts/header/top-menu.php
Answer:
//show login widget (must be disabled in Theme : disabled Show SignIn/Join in NewspaperTheme in Header – TOP Bar
So I was able to prevent all the Modals which are used for Login/ Register / Login in Comments to open
//To show Logged-Out Users a Login/Register Link to my own Login/Register Page in Top-Bar
//To show logged-In Users their Avatar and a Logout Out Link in Top Bar
//To prevent unwanted Spam Users to register without verifying
cause Newspaper Modal has no option for including Captchas or other Security Plugins without heavy modifications
The modified Code can be viewed here:
It activates the Login / Register Link in Top Bar Menu
Please note: In Mobil view the “Login/Register” or if a User is loggedIn the “Avatar/UserName/Logout” isn´t shown but it will do in Desktop View. And for my Users I have a seperate Login / Register / Account Page. So this isn´t really a problem.
Maybe in a Future Newspaper Update we get the possibility in Theme Setting to have a own setting for include a Url for: Login / SignIN – so that we don´t need to activate the Modal Login/Register if we have our own plugin which handles the Registration / Login of our users. But have the Login/Register | User Account/Logout Links displayed in Top-Bar Menu. In Desktop View and in Mobil View.
Hello Justingiles,
I am using the PHP Storm to edit the PHP files. Please keep in mind that the files are the same. The Header.php is located in the root of your theme.
Thanks.
Hello,
Adding a custom image ad is very simple in our theme. you can use this code:
<div class="td-all-devices"><a href="add your desired URL here"><img src="Add your image source here"/></a></div>
Add the code as an ad in the theme ad spots. In this case, the header ad: http://screencast.com/t/vnRD5hecTSEH
Here is the documentation on this process: https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Thank you!
Here’s what the category hierarchy looks like:
Online Exclusives
– Playlist of the Week
– – Faculty
– – Students
Election 2016
Gender Week
Here’s what the category list looks like under the header on category pages:
Online Exclusives—displays Election 2016 and Gender Week, and Playlist of the Week
Playlist of the Week—displays Election 2016 and Gender Week, and Playlist of the Week
Faculty—displays Faculty and Students
Is there any way the Playlist of the Week category page could list it’s child categories (faculty and students)?
Hi,
I’ve searched and cannot find a simple answer to what we would like to do.
We want to place a png/jpg in the header next to the logo as an ad—720×90.
However, all I can see is AdSense documentation.
We don’t use AdSense and don’t want to.
But we do want to put graphic ads in the header.
How can we do this?
Thanks
I believe I have found the header php file… but mine (http://www.screencast.com/t/gjacsLZg) looks different than yours (http://screencast.com/t/79hJsfNzs). Do I need to open it to a specific program?
Best,
Justin
Hi Catalin,
Where do I find the header.php file?
Is that in the Newspaper folder that I downloaded after I bought the theme? If so, I’m not seeing it.
Best,
Justin
Hi,
For some reason my posts aren’t displaying on the page. As my Header menu options are set as “mega menus” (the articles pop up when hovering mouse over the button) I can then see them, but not when I click into the page itself.
TIA
Hi
Yes you can use a background click ad and a header ad in same time, there is no restrictions in this regard. For more details bout theme’s ad system please check this link: https://forum.tagdiv.com/newsmag-header-ads/
Let us know if you need further assistance on this.
Thanks!
Okay after doing some searching around I tried going via url to the following after having moved the unzipped / zipped Newspaper folder into the wp-content/themes folder:
1. http://localhost/murphytimes/wp-admin/themes.php
It displays the other themes but I noticed that down the bottom under “Broken Themes” it has this:
Newspaper Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.
Any ideas? Thanks.
Hi Justingiles,
You will have to add the code in header.php file between head tags, like this -> http://screencast.com/t/79hJsfNzs -> http://screencast.com/t/Qm7HBzAnWOOR
Hope this helps!
Thanks.
Hi
We have a request to have a background ad and header ad.
Is this possible ?
Best
As a follow up. I have tried to toggle through the header settings. Hoping someone will reply
Hello,
The block you mentuion is block 18: http://demo.tagdiv.com/newspaper/block-18/
The header style used on the demo is header style 5
Thank you!
Hello Lena,
If you want to have a full width header, you will need to remove any background color or image you might have on your site. the header goes into boxed mode so the background can be shown properly. There is no way of having both unfortunately. It;s either a full width header or a background (color or image) If you want to remove the background, please remove the background image or press the clear button next to the background color
Thank you!
HI
Those files are not available in wordpress editor, you will need to edit the required file on your computer then upload it on the server via ftp in your-wp-install-wp-content/themes/Newsmag/parts/header
Before making any changes in your site make sure you do a full backup to your current wp-install and the database also: https://codex.wordpress.org/WordPress_Backups
Thanks!
http://demo.tagdiv.com/newspaper_video/
The block on the right-hand column that says “TOP REVIEWS”?
Also on this theme demo, which header style is this?
Thanks.
Thank you for your reply I have got most of it done but there is a string of js I can’t find that keeps appending 80px to the menu…. Here is the result I have got so far https://www.wpmultiverse.com/… However on touch devices, for example, an iPad, when I scroll down and then scroll back up it, displays the default 80px height.
Here is the code i used:
/*menu*/
.td-main-logo img{ width: 58%!important; }
.td-header-style-6 .td-main-menu-logo a { line-height: 0px!important; }
#td-top-search { margin-top: -27px!important; }
.header-search-wrap .td-drop-down-search {
top: 43px;
right: -2px;
}
jQuery( window).load(function() {
jQuery('.td-header-menu-wrap-full').removeAttr('style');
jQuery('.td-header-menu-wrap-full').css('height','40px');
});
jQuery( document ).ready(function() {
jQuery('.td-header-menu-wrap-full').removeAttr('style');
jQuery('.td-header-menu-wrap-full').css('height','40px');
});
Any suggestion?
Ok looks like the shortcode is what I need, however, I do not see the file header styple files you mention to edit in my Newsmag theme editor view. Please advise.
