No search results were found in Documentation!
Hi…
I am new this forum and i need help regarding these few things
1. How can make the top, bottom and main navigation menu in full width (http://imgur.com/F4liVxT)
2. How can we remove the underline from the Post titles and links when we hover it?
3. How can we had categories on single post page?
4. How can we add shadow in post thumbnails As is on this site or may be a box http://www.magscroll.com
5 How can we make the header navigation menu in solid instead of transparent.
Thanks!
Just starting to find my way around this feature packed theme and have a few questions and issues:
1. (A)When using the animated image slider if I select “medium” as display size it doesn’t work, all images are blown up very big and lose their resolution. It does work once I enter px*px height and width but that ends up zooming and cropping images. I’d like to display them close to org. dimensions. (B.) The slider image buttons (little dots) appear inside the image frame which doesn’t look good, this is solved by using NAVI slider BUT, I don’t want the title to appear on the bottom, is there some code to move the dots below the frame as in Navi?
2. Is there a way to get search results thumbnail previews? I only get text results.
3. I can’t get the custom ad to work in header or elsewhere. I don’t understand why we must use Google code or how to alter the code. Usually for ads you selected the image, paste the URL and done, this adsense code is confusing.
4. Using the default template, I’ve selected ‘blue’ as menu border colour but it doesn’t show up.
5. Using the homepage builder I’m trying to assign 2 plugin widgets; ‘Newsletter sign up’ and ‘events calendar’ to the side bar but there is no option to select them. How do I get them to appear on my homepage?
Thanks!!
Hi,
@Rabattix – please provide the url so i we can take a look, if you don’t want to post it here send it via email at contact@tagdiv.com , sometime the pagespeed test reports render blocking even if the elements are moved at the page bottom.
@nelito – the other pagespeed improvements are way more important than moving js/css at the page bottom, also it won’t lower the cpu usage. To improve on that you have to reduce the number of queries (fewer plugins, fewer blocks on page, reduce the elements which use ajax requests/pagination like mega menus/load more/infinite load), use cache, set the browser leverage cache, eventually use MySQL Query Cache. If you’re unhappy with the theme please send an email at contact@tagdiv.com and we’ll come with a solution.
Thank you, Emil G.
Hi,
I have moved all the JS bottom of the page, and the slider stopped working, Even if I click on the “next page” button.
How do I solve this?
In addition I have a strange sign instead of the button of the “next page”:
http://www.hayom.org.il/wp-content/uploads/2015/02/Slider-not-work.jpg
Thank you very much!
Hi,
First backup the database and the files.
If you don’t move on another host/domain, install and activate the Newspaper theme, then regenerate the thumbs – https://forum.tagdiv.com/how-to-fix-strange-thumbnails/ , set the menus (top, main, bottom), set the sidebar(s), create the main page and set it as a homepage from Settings -> Reading
You can find more details on how to configure each section in the documentation – https://forum.tagdiv.com/newspaper-documentation/
Thank you, Emil G.
Hi, I need to remove the border on a page, between Pagebuilder and Latest articles. Like on this image: http://www.screencast.com/t/bow3LVyWcnJ
I added this code to custom css:
.td-container {
border-bottom: none;
}
But I need to know if there is a better way to accomplish this.
(Here’s an example.)
Regards,
Felipe Z.
Customization/minification to wp-config.php file to optimize for fewer dbase calls.
a) remove all the excess comments
e.g., stuff like this does NOT need to be in file; which are “comments”
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information by
* visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
*
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
/** MySQL database password */
/** The Database Collate type. Dont change this if in doubt. */
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
/* Thats all, stop editing! Happy blogging. */
Add the following at bottom and put in your actual site URL
define('WP_HOME', 'http://site.com');
define('WP_SITEURL', 'http://site.com');
if your site runs as https, be sure to use https!
** ADVANCED USERS ONLY ON FINAL SITE DEPLOY **
For additional optimization, you can add the following:
(final line changes default folder from ‘uploads’ to something else; such as images; in my case ‘meta’)
define('TEMPLATEPATH', '/var/www/vhosts/site.com/httpdocs/guru/wp-content/themes/Newsmag');
define('STYLESHEETPATH', '/var/www/vhosts/site.com/httpdocs/guru/wp-content/themes/Newsmag');
define(UPLOADS, 'meta');
HI, folks
I thought I’d put this in ONE place (it’s buried in the pagespeed sticky topic on the newspaper forum, but a lot to shovel through there).
This is some of the custom code I put at bottom of my functions.php file EVERY time the theme is updated, and for ALL our websites, regardless of theme (with some new code for Visual Composer in this iteration).
Basically this code helps with various things – some of which are needlessly often done in plugins and don’t need to be – including things for PageSpeed rating, and general optimizations such as default image compression level for thumbnails, etc.
Use if you wish; but please *do not* go post this in a blog article as if it’s your idea or I’ll come and punch you 🙂
*NOTE:
this also includes code you might not need
a) remove visual composer CSS from post pages
b) remove pingback URL
c) change default WP thumb compression from 90 to 50 (some like 60)
d) remove yoast admin bar (annoying)
e) add go away message for people trying to login guessing passwords; great to use with limit login attempts
f) delete enclosure in RSS feed
g) disallow some things in comments for security
AND MY MAGIC BUNNY CODE:
/*CHRISTOPHER's CUSTOM MODS - 1.10.15 rev15A - (c) 2010-2015 Chris Simmons */
remove_action( 'wp_head', 'wp_generator' ) ;
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 );
add_filter( 'pre_comment_content', 'wp_specialchars' );
function no_errors_please(){
return 'You appear to be up to no good. Please stop now!';
}
add_filter( 'login_errors', 'no_errors_please' );
/* Disable YOAST SEO Admin Bar. */
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
// and we hook our function via
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
function delete_enclosure(){
return '';
}
add_filter( 'get_enclosed', 'delete_enclosure' );
add_filter( 'rss_enclosure', 'delete_enclosure' );
add_filter( 'atom_enclosure', 'delete_enclosure' );
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 );
add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );
function remove_pingback_url( $output, $show ) {
if ( $show == 'pingback_url' ) $output = '';
return $output;
}
add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );
add_action('init', 'myoverride', 100);
function myoverride() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
Note:
last item removes Visual Composer CSS from “post” pages (single). You would not use that if you use VC for anything on posts, obviously.
Yeah.
I would turn off everything except mod_pagespeed since it does the minify of HTML on the fly, removes comments, etc.
Use the tagdiv speed booster plugin which moves and enqueues scripts at bottom of page.
Use the functions.php file to add the remove query string code.
Use W3 cache if you don’t have mod_pagspeed connected to APC/opcache/memcache on the server (which can be configured in the master mod_pagespeed config file). But use the settings recommended by TagDiv.
example of some of my custom stuff in functions.php to remove query strings, visual composer credit, etc.
*NOTE:
this also includes code you might not need
a) remove visual composer CSS from post pages
b) remove pingback URL
c) change default WP thumb compression from 90 to 50 (some like 60)
d) remove yoast admin bar (annoying)
e) add go away message for people trying to login guessing passwords; great to use with limit login attempts
f) delete enclosure in RSS feed
g) disallow some things in comments for security
——————
/*CHRISTOPHER's CUSTOM MODS - 1.10.15 rev15A (c) 2010-2015 */
remove_action( 'wp_head', 'wp_generator' ) ;
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 );
add_filter( 'pre_comment_content', 'wp_specialchars' );
function no_errors_please(){
return 'You appear to be up to no good. Please stop now!';
}
add_filter( 'login_errors', 'no_errors_please' );
/* Disable YOAST SEO Admin Bar. */
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
// and we hook our function via
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
function delete_enclosure(){
return '';
}
add_filter( 'get_enclosed', 'delete_enclosure' );
add_filter( 'rss_enclosure', 'delete_enclosure' );
add_filter( 'atom_enclosure', 'delete_enclosure' );
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 );
add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );
function remove_pingback_url( $output, $show ) {
if ( $show == 'pingback_url' ) $output = '';
return $output;
}
add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );
add_action('init', 'myoverride', 100);
function myoverride() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
Note: my “lineup” cannot be posted in an article someplace, or stuff like that; use if you wish. I have left out some other things most folks don’t need, but we do. 🙂
Hope that helps 🙂
Hi. I have made a number of attempts to get this done and can’t get it correct. It’s in relation to the homepage on http://topic.ie/
I want the sidebar to move from the bottom of my homepage to the top (under ‘Big Grid’ widget).
Assistance would be appreciated.
Thanks,
Seamus.
Hi. I need to get the sidebar to move from the bottom of the page to the space beside ‘Sport’ section on my Home Page. http://topic.ie
I also need it to stick like in the demo.
Please advise. I have no coding experience so please explain clearly. Thanks.
At the bottom of the post, Tags show up. I was wondering if I can replace the word “Tag” with something else? Since I’m using the theme with a movies website, I am adding move genres as tags so would like the word to say “Genre” instead of “Tag”
Hi folks
this is an advanced user question (me).
Seeking to streamline overhead a little for all the theme functions we don’t use, and will never use with the theme, which are now loaded via td_wp_booster_functions.php and not main functions.php file.
For example, can I safely remove some of the elements such as
require_once('td_ads.php'); //handles background click ad
require_once('td_demo_site.php'); // the demo site
require_once('td_video_playlist_support.php'); //video playlist support
require_once('td_first_install.php'); //the code that runs on the first install of the theme
require_once('td_smart_list.php'); //the smart lists
require_once('td_login.php'); // modal window for user login
In the above list, we don’t use background ads, demo site, video playlists, smart lists, or logins; and we don’t use theme panel to install plugins/check for plugin install.
Similarly is it practical to remove the entire bottom section, since we’re not using the theme admin to manage install or nag screen for *any* plugin install, and it’s a lot of “newbie bloat” for us.
e.g., section starting with:
/* -----------------------------------------------------------------------------
TGM_Plugin_Activation
*/
require_once 'external/class-tgm-plugin-activation.php';
(etc.)
Thanks folks 🙂
Trying to optimize a little as some stuff we don’t use and never will use and is redundant/irrelevant for our use.
Hi,
By default jquery.js loads at the top – http://screencast.com/t/WwST1XHbB
If you use Speed Booster the minified version is loaded at the page bottom. – http://screencast.com/t/sTbcQnTBh – http://screencast.com/t/fDpI7lbGl9
You could try without Speed Booster or you could try to move the WP-Subcribe Pro js file at the bottom using the technique described in this guide (chapter 4) – https://forum.tagdiv.com/how-to-make-the-site-faster/
Also try to disable the rest of the plugins, except for Visual Composer while doing tests.
Thank you, Emil G.
-
This reply was modified 11 years by
Emil G.
Hello
Some issues noticed with 1.5 version updates
1) We noticed one second delay in whole site installation, WP-Admin – site front page as well.
2) In the error log file we also found some PHP errors. Please get this errors fixed as soon as possible.
`2015/01/30 07:02:57 [error] 19389#0: *2940 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined method td_block::inner() in /var/www/example.com/htdocs/wp-content/themes/Newsmag/includes/wp_booster/td_ajax.php on line 154
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /var/www/example.com/htdocs/wp-admin/admin-ajax.php:0
PHP message: PHP 2. do_action() /var/www/example.com/htdocs/wp-admin/admin-ajax.php:95
PHP message: PHP 3. call_user_func_array:{/var/www/example.com/htdocs/wp-includes/plugin.php:496}() /var/www/example.com/htdocs/wp-includes/plugin.php:496
PHP message: PHP 4. td_ajax_block() /var/www/example.com/htdocs/wp-includes/plugin.php:496" while reading response header from upstream, client: 92.90.16.190, server: example.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "http://www.example.com/2015/01/25/melchior-productiond-ltd-meditations-1-3-ep-flac/"
2015/01/30 07:38:55 [error] 19384#0: *8832 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function get_header() in /var/www/example.com/htdocs/wp-content/themes/Newsmag/index.php on line 6
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /var/www/example.com/htdocs/wp-content/themes/Newsmag/index.php:0" while reading response header from upstream, client: 54.194.125.10, server: example.com, request: "HEAD /wp-content/themes/Newsmag/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com""`
3) It’s not possible to change the line height on module related articles. From theme panel is not change. All settings are to default. The navigation also moved from top to bottom of the panel. See also this image
Kindly review this and let me know.
Best Regards
Hello,
I have installed and set up my newspaper template. I made my pages the way i plan to, but on every page, there is some strange “LATEST ARTICLES””content that are added by default on the bottom of all the pages, before the footer.
I am struggling 4-th day with this problem
Please help me to remove it from the pages
this is how it looks like:
Just scroll down untill you see the Lastest articles in english , it takes mote content than my actual page!
This is a common problem with CSS and custom over-rides from control panels.
It’s also called the flash of unstyled text with fonts, where the same issue happens.
Basically, what happens is that the original CSS loads for a moment, then the “over ride” color you’ve specified is loaded, and in some cases for a split second, depending on speed of server and other factors, you may or may not see that.
This is not unique to any specific theme, but simply how the web works when you’re not actually editing the MAIN style sheet which is loaded first.
This is basic CSS/HTML knowledge.
But basically, the way to fully remove that issue, is to edit the style.css file and change the class for that element to the color you wish. Fairly simple. Just do a search in text editor or programmer editor and locate the style class and change the color code. Then you don’t need to put into the CSS box in the theme panel. Downside is you have to do this each theme update, but ideally this would also be the point in time where you minify the CSS anyway. And if you’re optimizing your site for Google fonts, you’d actually put the calls to the fonts at bottom of your style.css and remove them from the theme functions files. But that is a bit advanced.
Hope that helps 🙂
Thank you for your response. I removed the while Jetpack-plugin and tried but the issue seems to still reamin.
Tried switching back to the WordPress standard-theme and when I slowly change the width of the browser window the pictures stay exactly the same quality wise (as long as they aren´t actually being pushed by the browswer windows edge of course – i which case the change pysical size and focus).
If i try this with the Newspaper theme every time i gently make the broswer window narrower every picture change it´s focus just a little from being rezised whats look like one pixel up and one pixel back evere time there is a change in broswer window – even though they shouldn´t be rezised at all since the only thing I´m doing is moving the outer edge of the browser window.
Tried to make a picture of the phenomenon. http://i.imgur.com/0U0m8ku.jpgIn the upper part of the picture the image displaying is being showed as 700px (as it supposed to be). In the bottom picutre the broswer window has been narrowed as little as possible – the browser windows is not pushing on the pictures. Somehow changing the browser window has manged to change the displayed image resolution to 699px instead.
If i make the browswer window one pixel narrower the image gets sharp again since it´s (again) returing to being displayed as 700px width.
This is crazy! 🙂 However it has to do something with the theme itself (or some plugin) since the error is not present in the WordPress standard theme (twenty fifteen).
-
This reply was modified 11 years by
MrOrsh.
Question 1: On the homepage, I want to remove the dates from underneath the three headlines starting with Kenya…, Iraq…, and Raw:… which are utilizing Block 5.
But, I want to keep the dates underneath the articles on the other pages and on the posts, so I can’t just disable the “Show Date” option in the Theme Panel under the Post Settings, because, whilst that removes the dates from the homepage, it also removes the dates from here and here, which, I don’t want. How do I remove, or hide with CSS, the dates from underneath the three World News Headlines on the homepage?
Question 2: With your previous help (thanks), I’ve customized the “RELATED VIDEOS” heading viewable at the bottom of this post.How do I make the corners on the right hand side of the “RELATED VIDEOS” rounded like the corners on the left hand side?
Question 3: I’ve created a Video Sources page. I want to make the page heading have a black box with white writing like the World News heading on this page. Inserting a “Text with title” makes the heading I want appear but there is too much of a gap/space underneath then. Is there a specific html/css tag that I can enter to make the desired heading appear?
Hello everyone
I was wondering if is possible to move a little down the header ads, in my opinion the ads are not centered with logo and thats the reason of my question.
In the following image you can see the original view (upper ad) and the view that I would like (bottom ad).
Thank you in advance for your help.
BR

Hi,
You could try an alternative to that plugin if you need it or address the matter to plugin author also maybe they can help you make it work together with the theme.
The post counter and the ajax next/prev post pagination work based on js so I suggest you check your console for js errors and also check this without any plugins active just the VC and speed booster plugin as the speed booster plugin moves scripts and style sheets to the bottom of the page and this could cause conflicts when used with other plugins.
Please make sure you try this and let me know how it goes and also provide your site’s URL.
Thanks
Hi,
I’m not sure that i understand all your questions. If you want to move the video to be at the bottom, you need to make some code changes. Also this is possible manually if you want only pasting the video link in your post content at the bottom.
If you want automatic here is an example for default post style:
1. copy this code here:
function get_video() {
if (get_post_format($this->post->ID) == 'video') {
//if it's a video post...
$td_post_video = get_post_meta( $this->post->ID, 'td_post_video', true );
$td_video_support = new td_video_support();
//render the video if the post has a video in the featured video section of the post
if ( ! empty( $td_post_video['td_video'] ) ) {
return $td_video_support->renderVideo( $td_post_video['td_video'] );
}
}
}
http://screencast.com/t/TYqXYLWy
2. from the same file, remove this code: http://screencast.com/t/uhXt4KPYKOq6
3. edit a post file, in this case for the default post style and add this code like here, after the content: http://screencast.com/t/f5aMVVeR6
get_video(); ?>
Thanks!
Speed booster plugin
– It moves the styles and all the scripts of the theme to the bottom, activates internal theme optimizations for better speed and it adds async js
Hi folks,
Loving the theme, really nicely put together !
We have an issue remaining with the Smart List functionality which I need a little assistance with though please.
On first loading a page using the smart list the image height is not always set correctly so you sometimes see http://www.screencast.com/t/CCCvOmtLx whereas if you move forwards in the list then back it sizes correctly to http://www.screencast.com/t/ofRBgxCd2f The page with this post is here: http://www.maxviral.net/celebrity/10-celebrity-photos-nearly-broke-internet/10/
The bigger issue though is the list ordering. We want to do a “countdown” in some cases like the page above, starting with 10 and ending at 1. For some reason this list style always shows 1 first then the next button takes you to 10 and then it counts down from there. This gives away the best item at the start which is incorrect as this item is the bottom of our post and should show last.
Heres the smartlist settings: http://www.screencast.com/t/CxWqL0iJR7VP
Any assistance would be gratefully received !
Hi,
1. You have to edit the post template files(depending on the style used loop-single default or 1-5) and add the following code above the title – http://screencast.com/t/JzT8ofAsKpX
render(array('spot_id' => 'custom_ad_1'));?>
Then you need to use custom css to adjust it (add the css inside Theme Panel -> Custom CSS) – http://screencast.com/t/YMdiBRy1
article .td-a-rec-id-custom_ad_1 {
margin-top: 15px;
margin-bottom: 0px;
}
2. Try the following css: – http://screencast.com/t/nb2b9iGqZ0Is
@media(max-width: 767px) {
.header-search-wrap {
display: none;
}
.mobile-logo-wrap img {
right: 0px !important;
left: 0px;
}
}
3. The padding is applied to the entire content – http://screencast.com/t/IgwOnop5
You could try to change the ad container position to relative an move it to the left (0px).
Thank you, Emil G.