- NewsmagtagDiv Composer Tutorial
- NewsmagBlock settings tutorial
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagUsing other ads
- NewsmagUsing Typekit fonts
Hi,
Unfortunately there is not an option to do this like on page, but you can use css code in Theme Panel > Custom Css: http://screencast.com/t/svk23mzYzg0
If you want to change margin to all blocks from sidebar you can try this css: http://screencast.com/t/Nejq6EKTO2
.td-ss-main-sidebar .td_block_wrap{
margin-bottom:40px !important;
}
Or you can target blocks individual from sidebar: http://screencast.com/t/x5igr7T7Vv
.td-ss-main-sidebar .td_block_social_counter{
margin-bottom:40px !important;
}
.td-ss-main-sidebar .td_block_4 {
margin-bottom:40px !important;
}
Please provide your site URL, if you can’t managed this and provide more detail.
Thanks!
I have came across a little problem. When using an image caption (just putting the info in in the picture description) there seems to be no way to edit the font or font-size. I would like to both be able to change the font of the caption text to go along with the other fonts in my theme and also to either remove or change the font as i tis displayed when the picture is actually pressed and are shown in “lightbox-mode”.
As it is right now when displaying a picture in the lightbox view if the picture is mostly white the text doesn´t show at all, since it is also white…
How do i do this? Preferably without css-customisation since there´s gotta be a way in the theme settings. Guess I just haven´t found it yet 🙂
Tagdiv doesnt do custom work, so likely need to hire developer to help remove the default call to menu in header.php and put in shortcode or other element to hook into wordpress menu system, and..or.. Mod the style.css and functions.php to add the plugins stuff to theme.
Thanks I will go over that, something interesting that happen for them record
I turned off BWM
I turned off Several options of speed buster
I turned off strings
all that in the newspaper theme, and activated speed booster with your code.
as a result I got 69/91. Witch really satisfy me.
did the same with newsmag (in my other site) and I get 63/83 witch is not bad but was doing better without mod_pagespeed.
I am getting a ton of error in the mobile version
Remove render-blocking JavaScript:
Optimize CSS Delivery
ptimize the following images to reduce their size by 115.2KiB (43% reduction).
also images are not optimized, is wird also becuase bith instalation are in the same vps…..
good news is that mobile is working now but grades are not so hot….
I tryed truning all off but is pretty much the same.
Manual minification of the theme style.css file
(e.g., /wp-content/themes/Newsmag/style.css)
Open style.css in a text editor, such as TextPad on Windows, BBEdit on Mac, or other pure “text editor” – notepad on windows works (NOT WordPad!!)
Go to http://cssminifier.com/
1) in your text editor, select all in the style.css file (CNTRL+A), and copy (right click copy, or CTRL+C)
2) paste into the left box on above website (right click paste or CTRL+V), click minify
3) copy all from right box
4) paste back into your style.css file on top (over/replace) — it should now look line one long string of code, not all the line breaks. This is what “minification” does; it removes spaces and line breaks (returns).
Optionally, make new text file called style.css and upload over the original (assuming you’ve made a backup). With a good text editor, you can also save with proper line breaks (for Unix servers, for example you should save stuff with “unix line breaks” and not “windows line breaks”) — hence something like TextPad 5 or BBEdit are good choices for this kind of stuff. Other freeware “programmer editor” software works, too.
This is how you manually minify the main style.css file. Must be done after every theme update; but literally takes less than 5 minutes.
You would need to replace the original style.css file either via FTP, or using a file manager in your hosting panel.
Additional .htaccess optimizations for Apache servers.
# END WordPress
AddType text/javascript .js
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
ExpiresByType font/truetype "access plus 2500000 seconds"
ExpiresByType font/opentype "access plus 2500000 seconds"
ExpiresByType application/x-font-woff "access plus 2500000 seconds"
ExpiresByType image/svg+xml "access plus 2500000 seconds"
ExpiresByType application/vnd.ms-fontobject "access plus 2500000 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
All of this “obviously” goes AFTER the WordPress elements generated when WP is setup.
-
This reply was modified 11 years by
simchris.
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.
(the last item there removes visual composer css from post pages, where MOST folks don’t use VC; I don’t — remove that if you do)
See my other post on “mod_pagespeed” today for explanation of what some of that does. 🙂
I have some custom code I use in functions.php — some of which you may find useful for optimization:
——————
/*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);
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 there
hope this is not a common question but i got to admit i haven’t found any information about it.
Well, i apologize for asking a such easy thing to do but i have to admit that i’m not confortable with “Less”.
The few times i worked on website design, i have used pure CSS which is to me really easier to manage.
So my intent is to create a login page on which i’d have droped off everything such as header, footer, sidebar, menu & so on. The only thing which will pop up being the login form
Thank you in advance for your help
btw, here are the settings I use to explicitly specify what to use with WordPress based on experimenting with this last year at this time.
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>
Your mileage may vary.
Hi guys,
I installed mod_pagespeed today and it broke the mobile version of the site, it seems to screw up the css in the mobile version.
is this a known issue ?
any ideas or solutions welcome.
Thanks in advance!
Hi,
Please try this custom css in theme panel custom css filed, I can’t guarantee it will work though as the style and width for that div (#swiffycontainer) is added inline and I’m not sure how it can’t be rewritten:
@media (max-width: 767px) {
div#swiffycontainer {
width: 300px !important;
margin: 0 auto !important;
}
}
Also try to set the size for your add from theme panel, like this: http://screencast.com/t/wFNXOLe6e
Thanks
Hi,
You can do it via custom css, like this: http://screencast.com/t/RPo84L7g0N
The comments and view are icons and can;t change their color via css also. You would need to use other icons there or edit and modify the sprites file: http://screencast.com/t/rGHLptq0G
Here is the css code to change the text color, adjust it as you like:
.meta-info time, .meta-info .entry-comments-views {
color: red;
}
Thanks
Hi,
This hasn’t been changed, changing the css in the type.less file should do it, I have also tested this just make sure you change the file from this path: ..Newsmag\includes\less_files\type.less not this: ..Newsmag\less_files\type.less
Thanks
Hi,
Blockquote center desn’t come with a class – http://screencast.com/t/tCAho3HVD
You can target it with custom css:
.td-post-content blockquote p {
...
}
The others come with the following classes – td_quote , td_quote_box and td_pull_quote
Thank you, Emil G.
-
This reply was modified 11 years by
Emil G.
Hi,
1. Please use this css code in Theme Panel > Custom css: http://screencast.com/t/xGDubrz7Ix
.home .td-module-comments{
display:none;
}
Result: http://screencast.com/t/WrH59m0AIISZ
2. I’m not sure what you mean, if you want to create a download link please take a look how to create one:
http://stackoverflow.com/questions/2793751/how-can-i-create-download-link-in-html
Please provide more details.
3. You are displaying only 5 articles per page, that’s why appear this space. Please change the number of posts displayed from here: http://screencast.com/t/Hfbp81lxfbFr
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Salut,
Template’urile pt taguri folosesc accelasi fisier loop.php iar daca apar pe paginile de categorii atunci trebuie sa para si pt tag’uri, asigura’te ca ai urmat pasii corect si da “purge” la fisiere daca folosesti host CDN.
Incearca sa schimbi si modulul folosit pentru posturile ce apar pe paginile pt tag’uri.
1. Plugin-ul doar muta scripturile si/sau fisierele css in footer iar asta poate cauza probleme de js sau css daca exista o ordine de incarcare a fisierelor.
Din pacate nu pot sa-ti ofer un raspuns concret in privinta asta pt ca nu am incercat asta dar poti sa testezi si sa tii cont de asta pe viitor.
2. O sa luam in considerare sugestia ta pentru viitoarele actualizari daca ne vom decide sa imbunatatim sau sa modficam modala(lightbox-ul).
3. Avem in plan ca pe viitor sa oferim o optiune pentru a seta sau a construi o pagina diferita pentru mobile insa in momentul acesta asa ceva nu este posibil decat prin modificare la nivelul codului ori prin folosirea unui plugin.
Mersi!
Hi,
Smartlist 2 and 4 were designed to use font size 12px, so you will need to use custom css for them. Sorry for inconveniece!
For Smartlist 2 use this css: http://screencast.com/t/wjC1qAmOnC
.td_smart_list_2 .td-sml2-description p{
font-size: 16px;
}
For Smartlist 4 use this css: http://screencast.com/t/GVIs51hNybV
.td_smart_list_4 .td-sml4-description p{
font-size: 16px;
}
Smartlists 1 and 3 use post content size:
http://screencast.com/t/3RYfrX4e
http://screencast.com/t/e1RM35nrxd
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Please use this custom css: http://screencast.com/t/1BPH6D8Bt
Please note that this change will apply to all posts so if you just want this for the post you’ve sent me then you need a different approach.
.td-post-content footer {
margin-top: 0px !important;
}
.td-post-content footer .td-social-sharing {
margin-bottom: 0px;
}
Thanks
Hi,
Please make sure that you also use the latest theme version then deactivate all plugins leaving just the Visual Composer plugins active then empty cache and also purge files if you use any CDN host services then check again.
Also make sure that you test this without any js/css/hmtl minification options, disable those option then empty cache/purge files and try again.
I have also checked this using the latest theme version (4.6.1) and found no issue so it should work in your case also.
Also use this guide to setup megamenu: https://forum.tagdiv.com/how-to-use-the-megamenu/
Let me know how it goes!
Thanks!
-
This reply was modified 11 years by
Lucian.
Hi,
Please try this custom css and use in theme panel > custom css filed:
body {
cursor: pointer;
}
.container, .container.td-page-wrap {
cursor: default;
}
Thanks
Hi,
You could try to back-up your current WordPress/theme installation and update WordPress if you don’t use the latest version (4.1). Updating it could solve your issue. In all my tests I haven’t encountered an issue similar to yours so it should work for you also.
The image need to be at least 745x483 which represents the big image thumb size and the image needs to be of that width to fill the whole container. Regenerating thumbnails should solve it unless the image you use it’s smaller that the dimensions needed because WordPress doesn’t enlarge images.
So please check if the image you use is large enough and if so and still it doesn’t work edit the post remove the featured image then try to upload and set another one to test if this happens to all images then revert back to the one you need, you can remove it and upload it again.
If it doesn’t bother you that the image is stretched you could also do this via css and use this custom css in theme’s custom css field in theme panel to solve this: http://screencast.com/t/VvUGsST3e
.td_block_big_grid .td-big-grid-post-0 .entry-thumb {
width: 100%;
}
Thanks
Hi,
Please use this custom css in Theme Panel > Custom css: http://screencast.com/t/Y470wXEdS6Wb
Before: http://screencast.com/t/EPWDoHn5xags
.blog-stack .td-menu-background{
border-bottom: 0px;
border-top: 0px;
}
Result: http://screencast.com/t/995iOji1Wg
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].