- NewspaperHeader Builder
- NewsmagHeader styles
- NewsmagHeader ads
- NewspaperHeader ads
- NewspaperHeader styles
- Apitd_api_header_style::delete
- Apitd_api_header_style::update_key
- Apitd_api_header_style::update
- Apitd_api_header_style::add
- ApiAPI – Header style – Introduction
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperPosts Loop Element
- NewspaperHow to Add a Logo in Newspaper
- NewspaperDefault Category Settings
- NewspaperWhen tagDiv Composer is Not Working
Hello thilaxan,
If you want to increase the menu height you should use a bit of CSS code. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
#td-header-menu{
min-height:55px;
}
.sf-menu>li>a {
line-height: 55px;
}
Notice that you can adjust the values as you want.
The result you should see here -> http://screencast.com/t/MKTPfPnW
Thanks for the message!
Hello laurena86,
If you want to increase the height of your menu black bar you should use a bit of CSS to do that. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
@media (max-width: 767px){
.td-header-main-menu {
height: 70px;
}
}
You can change the height value as you wish.
Hope this helps!
Thanks for your understanding!
hi Catalln,
Thanks for the reply.
Actually we need to change the top right header ad with the new one. We created it in advance ad plugin. but in theme panel there is not a option to chose header ad. There is only one option background click ad. (see screen shot).
please open this URL for screen shot.
https://www.geospatialworld.net/wp-content/uploads/Screen%20Shot%202016-11-16%20at%2011.29.15%20AM.png
Earlier we had option to change header ad, side ad 1, side ad2 by changing ad id (example: [the_ad id=”55822″]) here.
thanks
Regards
Anshu Garg
Heh. Many folks don’t know how to manage their web server so not really a theme issue re the CORS issue; theme does not control cross origin abilities.
This works on our Apache server for many years now; would be different on NGINX.
<FilesMatch "\.(ttf|otf|eot|woff|woff2|svg)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
(( I don’t work here. ))
-
This reply was modified 9 years by
simchris.
Well, WordPress 4.6x uses 1.12.4 — so why load two versions ?
I don’t use SpeedBooster, so no advice on that 🙂
I am using the “scripts to footer” plugin for testing, then I just move the stuff once I have critical CSS generated.
Guess that isn’t much of an answer, but it’s all I got.
I am actually working on a ‘plug-in’ right now for all my custom functions.
=========
building my own WP plugin called “[name pending]” to do this:
(1) remove junk from WP headers like versioning, emoji scripts, comments feeds
(2) change default WP image quality for thumbnails for better speed
(3) security fixes to disable poking the built-in password reset and password reset email junk not needed for most businesses;’ disable XMLRPC/pingbacks, etc.
(4) Sitemap shortcode, so one could drop a single line into a page to generate local sitemap of company pages and info
(5) OG tags generator for FB, Pinterest, social
(6) SEO basic headers to drop in keywords, schema, image, meta titles and descriptions based on type of page (without having to use a super bloaty SEO plugin that might actually mess up your site when updated)
(7) Remove /category/ and /tag/ base elements; option to rename /author/ slug to something else like /department/ or /expert/ 🙂
And more … all in ONE plugin which can easily be commented out if client doesn’t want something when developing their site.
I will put this onto the web once it’s done 🙂
(need to add toggles for on/off on things in the admin panel; version 1.0.1 does not have admin panel options)
-
This reply was modified 9 years by
simchris.
Hi,
I am getting PHP Fatal error: Call to undefined function get_header() in /***/***/***/***/***/***/index.php on line 6 from America/New_York location.
Theme Version 7.5
Sorry… been busy rescuing some sites which were borked due to improper backups (sigh) from Aug 5 web server crash (damn you Softlayer/IBM!)….
here was the updated bunny code which took out the renaming of the author slug to profile, and fixed the comment removal in footer, and the emojis….
this would go at bottom of functions file … if you want; only tested with Newsmag 3.1 and other themes I use (I do have a custom thing we use for e-commerce, and our news portal mothership, but those are super custom things):
=================
/** CUSTOM OPTIM CODE : by Christopher Simmons - REV 11..16 */
// Remove jQuery Migrate Script from header and Load jQuery from Google API
function simmonsbunny_remove_jquery_migrate_load_google_hosted_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, null);
wp_enqueue_script('jquery');
}
}
add_action('init', 'simmonsbunny_remove_jquery_migrate_load_google_hosted_jquery');
add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );
/** functions for headcleaner */
function rm_generator_filter() { return ''; }
add_filter('the_generator', 'rm_generator_filter');
remove_action('wp_head','wlwmanifest_link');
remove_action('wp_head','rsd_link');
remove_action('wp_head','feed_links', 2);
remove_action('wp_head','feed_links_extra', 3);
remove_action('wp_head','start_post_rel_link', 10, 0);
remove_action('wp_head','adjacent_posts_rel_link_wp_head', 10, 0);
remove_action('wp_head','print_emoji_detection_script',7);
remove_action('wp_print_styles','print_emoji_styles');
remove_action( 'wp_head', 'wp_resource_hints', 2 );
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
function remove_pingback_url( $output, $show ) {
if ( $show == 'pingback_url' ) $output = '';
return $output;
}
add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );
/** functions for security */
function no_errors_please(){
return 'You appear to be up to no good. Your IP logged and will be blocked.';
}
add_filter( 'login_errors', 'no_errors_please' );
function disable_reset_lost_password()
{
return false;
}
add_filter( 'allow_password_reset', 'disable_reset_lost_password');
function remove_lost_your_password($text)
{
return str_replace( array('Lost your password?', 'Lost your password'), '', trim($text, '?') );
}
add_filter( 'gettext', 'remove_lost_your_password' );
add_filter( 'send_email_change_email', '__return_false' );
/** functions for admin bar */
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
add_filter( 'wpseo_use_page_analysis', '__return_false' );
function my_custom_css() {
echo '<style>
.misc-pub-section.yoast-seo-score.content-score { display: none; }
.misc-pub-section.yoast-seo-score.keyword-score { display: none; }
</style>';
}
add_action( 'admin_head', 'my_custom_css' );
function dequeue_yoast_css() {
wp_dequeue_style('yoast-seo-adminbar');
wp_deregister_style('yoast-seo-adminbar');
}
add_action('wp_enqueue_scripts','dequeue_yoast_css');
/*remove embeds */
function disable_embeds_init() {
remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
remove_action('wp_head', 'wp_oembed_add_discovery_links');
remove_action('wp_head', 'wp_oembed_add_host_js');
}
add_action('init', 'disable_embeds_init', 9999);
// Remove comment-reply.min.js from footer
function chrisbunny_clean_header_hook(){
wp_deregister_script( 'comment-reply' );
}
add_action('init','chrisbunny_clean_header_hook');
/** End Christopher's magic bunny code; Copr. (c) 2013-2016 CLS */
-
This reply was modified 9 years by
simchris.
sir, i am using this theme on quotes.org.in i have used Food Recipe Demo http://demo.tagdiv.com/newspaper_recipes/.
But i am not able to change the header photo where Food Recipies is written on start please help me to change it
Hello team,
We are facing lots of problem with the News Mag theme at our website fossbytes.com:
First: Icons are appearing in Chinese. We tried searching solutions online and found that lots of people are seeing the same problem. Why it isn’t a theme related issue if many people are having the Chinese icons problem with Newsmag? Also, at so many places we are seeing rectangle boxes. Here, I’m attaching few screenshots of the same.
https://1.sharebylink.com/1/?passcode=58318d081212e&parent=XwtqNQrJnobO
https://1.sharebylink.com/1/?passcode=58318d08121dd&parent=XwtqNQrJnobO
https://1.sharebylink.com/1/?passcode=58318dd541118&parent=614k9UJcQMv7
Secondly, the editor is divided into two parts and we are unable to fix it. It’s really hard to type anything in the editor.
https://1.sharebylink.com/1/?passcode=58318dd541077&parent=614k9UJcQMv7
https://1.sharebylink.com/1/?g0UdhAWxDFLC
As suggested by you on forums, we have changed everything in the .htaccess file, please find the content of .htaccess files below:
Header set Access-Control-Allow-Origin “*”
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /public/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /public/index.php [L]
</IfModule>
# END WordPress
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
This is the error we are seeing in console:
https://1.sharebylink.com/1/iqBoxUpload/15126137_1177141839044913_1141355589_o-(1)_WVSM1uqQjgtg.png
We have tried everything and we are unable to fix the problem. Please look into it.
We’ve already sent you the purchase code via email. Try searching fossbytes.com
And please don’t give us your pet replies like this isn’t a theme related issue or clear your caches and try to reply to your emails, otherwise, there will be no point of purchasing the theme and support.
Before today, I was able to select design of post (like this – with header, main page – example – http://prostobzor.ru/garmin-virb-ultra-30-unboxing/)
Today I tried to publish new post in my wordpress – but the list of available formats is missed.
So, I have this default post page here – example – http://prostobzor.ru/garmin-virb-ultra30-mobile/
Here it is what I have inside of Backend and post – screenshot – http://screencast.com/t/g8uSKXuJ8Ku
Could you advise, what am I doing wrong? or where can I find this block in the my post ?
Hi,
A few days ago I bought this wonderful theme and had some questions about functionality:
1. Can I not just change the color and add background image at the header? https://yadi.sk/i/5-dm6PdCz3rL6
2. How to make center alignment of the image caption? https://yadi.sk/i/wpz-SX_sz3rLP
3. Why theme not have appearance options of marker list using shortcodes? https://yadi.sk/i/OquFFDslz3rMG
4. Can I use not only horizontal tab, but vertical?
5. How I can remoove articles from one author on the bottom of post? https://yadi.sk/i/DC97rs5Sz3rMU
6. How to set own social sharing? https://yadi.sk/i/CBbcyzqez3rMs
Thanks.
Regards,
Artem.
Hello –
I am trying to integrate the Revive Adserver into the Newspaper7 theme. I am trying to enter the ad code in the “Newspaper – Theme Panel -> ADS -> Header ad – YOUR HEADER AD” section:
<div class=”td-all-devices”>
<?php
//<!–/*
*
* Revive Adserver Local Mode Tag
* – Generated with Revive Adserver v4.0.0
*
*/–>
// The MAX_PATH below should point to the base of your Revive Adserver installation
define(‘MAX_PATH’, ‘/path/to/revive’);
if (@include_once(MAX_PATH . ‘/www/delivery/alocal.php’)) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target=”, $source=”, $withtext=”, $context=”, $charset=”)
$phpAds_raw = view_local(”, 1, 0, 0, ”, ”, ‘0’, $phpAds_context, ”);
}
echo $phpAds_raw[‘html’];
?>
</div>
The Asyncronous JS Tag, Javascript, and IFrame Tag do not display. The Local Mode Tag only displays the PHP text. Does anyone have any experience integrating this adserver?
Regards,
Neil.
Hello Bogdan,
The problem is that all our blog posts before the move from http… to https… lost their original Likes (because of the changed URL).
What, therefore, should be the “content” in the “og:url” meta property in the header.php file, so that all changed URLs are affected collectively? Or is that possible in the first place? If it is, could you fill it in below?
<meta property=”og:url” content=”___________________” />
Thanks again,
Vesa
My site has 109 <H1> headers, and 0 <h2> headers.
How can I switch all of those H1’s to H2?
What are the recommended dimensions for the mobile header ad. I am currently using 320×100 and getting a lot of white space around the ad: staging4.maxlaxoc.com. I’d like to fill in the white space.
Hi,
Need your help urgently.
I got this malware message in last few days.
So I removed the TagDiv websites urls from the affected files such like
td_config.php
td_api.php
td_cake.php
td_panel_header.php
and many others.
Now I am getting these error in the dashboard, also few plugins are not working properly, there are delay in new plugin install, deleting and updating.
And this url (http://www.topfivebuzz.com/wp-admin/) is giving the error mentioned below
Warning: Cannot modify header information – headers already sent by (output started at /home2/mayanzc1/public_html/topfivebuzz/wp-content/themes/Newsmag/includes/td_config.php:1) in /home2/mayanzc1/public_html/topfivebuzz/wp-includes/pluggable.php on line 1174
Looking forward to your help.
Thanks & Regards
Debarup
Hey Tag,
This is Siddhartha from Farbound.Net. I have been using your theme for some time now and I have to say this – it is just wonderful with its intuitiveness, stylish appeal and flexibility. Plus your updates never cease to surprise. Though my support expired a while back, I was wondering if you could still supply me with some answers.
1. Can the smart side bar by any chance and via custom CSS be made to recognize stretched rows? Say I use template style 3 with the right side bar operational and then put some stretched VC rows into the content. If I do this right now the sidebar flows right over the VC containers. If I can get the sidebar to float underneath the stretched content, nothing like it. Presently I am using visual composer to do this.
2. The Smart List is not supposed to work with Visual Composer, is it? I tried that on template 5 with visual composer, but the sidebar gets pushed right below the content. Also sometimes the NEXT and PREVIOUS BUTTONS overlap each other. Or am I doing something wrong here?
3. For templates that include the headlines and subtitles within the featured image, is there any way to adjust both the subtitles and headlines to appear better with some spacing when viewing on mobiles? Right now it becomes a jumble. But works well with just headlines. These would be template style 3 and template style 7. For an example: view this page (I noticed this on chrome with the browser size minimized) – Outpost of a vanishing world
4. I followed your instructions and successfully placed an advertisement just above the footer section with a stretched visual composer row, background-color applied. The ad was visible but the background-color was not. Did I miss something?
5. Do you plan to include new post templates in the future? A template that has the headline and subtitle on top of a rather large full width image. I am doing this right now with visual composer.
6. I noticed the social share box at the bottom has some space. Was wondering if it could accommodate a COMMENT icon inside as well along with the word ‘COMMENT’ or just the word. You know, once people reach the end of the story they can not only share it if they like but also find the COMMENT WORD there – clicking which they could directly reach the comment section. The comment icon presently available right now is very stylish but I feel not many are aware what the icon stands for. Yes, I am also well aware people who comment are very less, but since I still come across a lot of reputable media sites using the comment word big and bold, I assume the word does better than an icon.
7. Do you plan to include the option of using custom background-colors with advertisements? I managed to add a light grey to the header ad by coloring the wrapper via css but if an adblock is on viewers only see the grey box. Not that I mind, I can always put a message that says kindly turn your adblock off. Though if you do add in that option, would be very nice indeed.
Thanks
Hi,
Need your help urgently.
I got this malware message in last few days.
So I removed the TagDiv websites urls from the affected files such like
td_config.php
td_api.php
td_cake.php
td_panel_header.php
and many others.
Now I am getting these error in the dashboard, also few plugins are not working properly, there are delay in new plugin install, deleting and updating.
And this url (http://www.topfivebuzz.com/wp-admin/) is giving the error mentioned below
Warning: Cannot modify header information – headers already sent by (output started at /home2/mayanzc1/public_html/topfivebuzz/wp-content/themes/Newsmag/includes/td_config.php:1) in /home2/mayanzc1/public_html/topfivebuzz/wp-includes/pluggable.php on line 1174
Looking forward to your help.
Thanks & Regards
Debarup
Hello,
The post style 7 image container has a set height of 700 pixels. Luckily it can be changed with css to any size you want. Here is an example:
.td-post-template-7 .td-post-header{
height:900px!important;
}
Thank you!
Hello Gordon,
This is a simple custom Ad 1 which can be added on your front page from Theme panel. As you can see, first of all, you should add your desired ad code in Custom Ad 1 and then, be using the Ad Box element, you should call this ad inside your homepage, every you ant, like this -> http://screencast.com/t/ZDexw3t1Ol -> http://screencast.com/t/2YiVNjSnuB For more information about our Ads, you should consult the documentation here -> https://forum.tagdiv.com/header-ads-adsense/ -> https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Hope this helps!
Thanks for your understanding!
Hi, the plugin has been installed. The guide was followed as instructed but the code in function.php, the
Files appear in the header but the files that need to be deleted aren’t there.
Hello,
I would like to thank you for perfect plugin. I would like to ask. How to make bigger fullscreen header of posts. I would like Post Style 7 Header wider to possibility full screen picture. Can you give me tip how to make it?
Hello eddiecassidy6,
First of all, I will thank you for your above explanation. Here is talking about an unproperly setup of your homepage and that’s why you will bring these. I guess that you want to have a smart sidebar which rolling until the latest article module, look like the demo, right? Please notice that you should use correctly the Visual Composer (2/3+1/3) and also if you want to have this type of sidebar you should set it properly with our documentation here -> https://forum.tagdiv.com/smart-sidebar-2/ I have inspected your screens and I have notice that you are not using the right layout of your rows in Visual Composer and that’s why you will bring these white spaces. Try to use our documentation regarding on how you can use the Visual Composer plugin, here -> https://forum.tagdiv.com/how-to-use-visual-composer/ because it is very useful to understand the right steps in order to achieve best results. If you want to change the background of your website, first of all, you should check the Design Option from your Row Settings because the color comes from here, like this -> http://screencast.com/t/r27qtdqFqSf
Regarding on pictures on the header menu, please notice that all of them were made using the Font Awesome for Menus plugin which has this functionality. For more information about this plugin, please consult the documentation here -> https://forum.tagdiv.com/how-to-add-icons-in-menu/
Hope this helps!
Thanks for your understanding!
Hi,
Unfortunately css cannot do that. Please disable the ad on desktop and tablets if you only want it on mobile:
http://screencast.com/t/RmZmf2Zv and then to remove the header ad on other pages except posts, you will have to edit the file that corresponds for the header style that you use:
http://screencast.com/t/KYuL2w3c – http://screencast.com/t/KVu0tx2UON
<?php if (is_single()){
locate_template('parts/header/ads.php', true);
}?>
Thank you!
Hello,
The block titles are one of the demo-specific elements. There is no setting in the theme to change the block titles. They are hard-coded in each demo style that you choose. The default has one style for the headers, news magazine has a different one…and so on.
You can only replicate the style using css.
The colors are set from the block settings -> http://screencast.com/t/XYXUsBmeP1d
And for the header style, you can add a transparent background color to the header using this code:
.block-title span{
background-color: rgba(171, 140, 73, 0)!important;;
color: black;
font-size: 18px;
padding-bottom:5px;
padding-left:0!important;
}
result: http://screencast.com/t/iUYPncMouruX
Thank you!