Search Results for 'optimize'

Results from the Forum
Lucian
tagDiv Staff

Hi,

Unfortunately at this time there is no way to update the theme without it. We are working to optimize this implementation and it will added in the next theme updates.

Thanks

saggel
tagDiv Member

lucian hi. i run optimise tool to reduse size images and i saw that! .

The theme makes 17 resizes images for any uploaded image! is this normal?

Optimized image: 2014/11/black-pearl-009.jpg
Full size – Reduced by 5.8% (13,5 kB)
black-pearl-009-83×83.jpg – No savings
black-pearl-009-345×225.jpg – No savings
black-pearl-009-700×458.jpg – Reduced by 0.6% (241,0 B )
black-pearl-009-80×52.jpg – No savings
black-pearl-009-700×357.jpg – Reduced by 0.8% (260,0 B )
black-pearl-009-100×65.jpg – No savings
black-pearl-009-100×65.jpg – No savings
black-pearl-009-326×159.jpg – No savings
black-pearl-009-326×235.jpg – No savings
black-pearl-009-326×406.jpg – Reduced by 0.9% (159,0 B )
black-pearl-009-700×357.jpg – No savings
black-pearl-009-1074×483.jpg – Reduced by 1.5% (853,0 B )
black-pearl-009-545×357.jpg – Reduced by 0.2% (42,0 B )
black-pearl-009-738×483.jpg – Reduced by 0.9% (403,0 B )
black-pearl-009-745×483.jpg – Reduced by 0.7% (313,0 B )
black-pearl-009-210×210.jpg – No savings
black-pearl-009-198×143.jpg – No savings
Elapsed: 2.014 seconds

simchris
tagDiv Member

You need to read the docs on how to optimize the site for pagespeed as you have numerous issues with the server setup, image optimization, etc. Please see the docs for the theme from the forum navigation bar on how to optimize your site for “speed.”

digitalbulgaria
Participant
#0

Hi,

several issues when I open the page from mobile device – in this case it was Android.


-> it looks like social icons for sharing are not displayed correctly. Also the arrow (bottom right corner) is not being displayed – just the square. Logo at the top seems not correctly aligned.


-> as above the scroll to top icon is not being displayed. This actually is not on only those 2 pages, but everywhere.


-> google adsense ad seems to be cut from above – the top border line of the banner is missing.


-> please recommend WordPress plugins or codes to fix those things. Can you also recommend a Image Optimizer Plugin for WP? Please note that I have installed W3 Cache Plugin, which actually solves some of the issues and score goes up but the site is not functioning properly – javascript problems, the menu stops showing, the search bar is not working and the sliders are broken when that plugin is activated.


-> please recommend how to fix those things on mobile as well

The URL of the site can be seen in the screenshots.

Thanks a lot!

Lucian
tagDiv Staff

Hi,

The theme was tested and designed to use resources in most efficient way and can also be customized to speed up your site.
You can take a look at the PageSpeed topic where many theme users have provided advices on how to optimize your server, page speed, caching, htaccess and set your server settings properly.
If you followed all this and still have issues you should also consider changing you host provider. If that is not an option please contact us via email at contact@tagdiv.com and state your issues details and we will try to find a solution for it.

Thanks

andantesash
Participant
#0

On google pagerank insights, I get the following, but when I add them to the correct sections in minify – certain parts of the website disappear. How do I fix this?

Remove render-blocking JavaScript:
http://ajax.googleapis.com/…s/jquery/1.11.1/jquery.min.js?ver=1.11.1
http://www.webaddress.com/…ress-social/js/buddy-social.js?ver=4.0.1
http://www.webaddress.com/…/plupload/plupload.full.min.js?ver=2.1.1
http://www.webaddress.com/…es/js/plupload/handlers.min.js?ver=4.0.1
http://www.webaddress.com/…/js/jcrop/jquery.Jcrop.min.js?ver=0.9.12
http://www.webaddress.com/…vatar-ajax/js/handle-upload.js?ver=4.0.1
http://www.webaddress.com/…ress/bp-core/js/confirm.min.js?ver=2.1.1
http://www.webaddress.com/…-core/js/widget-members.min.js?ver=2.1.1
http://www.webaddress.com/…bp-core/js/jquery-query.min.js?ver=2.1.1
http://www.webaddress.com/…p-core/js/jquery-cookie.min.js?ver=2.1.1
http://www.webaddress.com/…ted/js/jquery-scroll-to.min.js?ver=2.1.1

Optimize CSS Delivery of the following:
http://www.webaddress.com/…ss-social/css/buddy-social.css?ver=4.0.1
http://www.webaddress.com/…cial/css/social_foundicons.css?ver=4.0.1
http://www.webaddress.com/…eneral_enclosed_foundicons.css?ver=4.0.1
http://www.webaddress.com/…js/jcrop/jquery.Jcrop.min.css?ver=0.9.12
http://www.webaddress.com/…-legacy/css/buddypress.min.css?ver=2.1.1
http://www.webaddress.com/…uploads/js_composer/custom.css?ver=4.3.4
http://www.webaddress.com/…ard/public/css/wpjb-glyphs.css?ver=4.0.1
http://www.webaddress.com/…bboard/public/css/frontend.css?ver=4.2.0
http://www.webaddress.com/…lugins/jetpack/css/jetpack.css?ver=3.2.1
http://www.webaddress.com/…tewide-activity-widget/swa.css?ver=4.0.1

Any help would be great

simchris
tagDiv Member

@Danijelmo
You don’t need to post the same thing over and over.

Try testing your site with GTMetrix.com as it will tell you specifically what your site problems are and classify them by things like “Server” “Images” etc., with explanations.

Did you setup gzip/deflate on your server? [looks like you did!]

Did you edit your htaccess file (if applicable) to add expiration headers (e.g., mod_expires settings)?

Did you install an optimization plugin for images/thumbnails or change the default setting in your functions.php file?

Are you using the tagdiv speed booster plugin?

Did you disable system hogs like jetpack? Disable all plugins you’re NOT using?

Are you using a caching plugin once all of the above is working?

————

based on this you have some issues:
http://gtmetrix.com/reports/crnjaci.com/fxrIs409

1) you’re loading images off wp.com instead of your own locale; using a CDN for un-optimized images doesn’t make them load any better
2) you need to add instruction to the functions.php file to remove query strings (see my help on that in the pagespeed sticky topic)
3) you have some ridiculously huge images….
•http://i2.wp.com/crnjaci.com/wp-content/uploads/2014/08/IMG_0380.jpg?fit=1024%2C1024 is resized in HTML or CSS from 768×1024 to 291×388. Serving a scaled image could save 253.5KiB (85% reduction).
•http://i0.wp.com/crnjaci.com/wp-content/uploads/2014/08/10250323_10152304836090758_9213683227347813057_n.jpg?fit=1024%2C1024 is resized in HTML or CSS from 1024×768 to 291×219. Serving a scaled image could save 245.6KiB (91% reduction).
•http://i1.wp.com/crnjaci.com/wp-content/uploads/2014/08/DSC03988.jpg?fit=1024%2C1024 is resized in HTML or CSS from 1024×768 to 291×219. Serving a scaled image could save 241.2KiB (91% reduction).
•http://i1.wp.com/crnjaci.com/wp-content/uploads/2014/08/IMG_0594.jpg?fit=1024%2C1024 is resized in HTML or CSS from 768×975 to 291×370. Serving a scaled image could save 238.1KiB (85% reduction).
•http://i2.wp.com/crnjaci.com/wp-content/uploads/2014/08/IMG_0213.jpg?fit=1024%2C1024 is resized in HTML or CSS from 1024×683 to 300×200. Serving a scaled image could save 228.1KiB (91% reduction).
•http://i1.wp.com/crnjaci.com/wp-content/uploads/2014/08/10568980_10150651663339953_7674800880872619968_n.jpg?fit=1024%2C1024 is resized in HTML or CSS from 960×720 to 291×219. Serving a scaled image could save 199.1KiB (90% reduction).

Looks like you need to seriously look at your image optimization problems as your images look to be way too big when actually served on the pages.

Wny would you have a 250kb+ image file? A 1024×768 image if properly optimized should be no more than maybe 75kb.

BTW: optimizing your server/site for PageSpeed is YOUR job, not the theme’s job. Good to learn how to do this by reading up on the topic on Google as well as the docs provided with the theme as a courtesy.

simchris
Participant
#0

HI, to make this easier to find, I’m posting this in one place.
This applies to moving from Newspaper to Newsmag, but could also apply to moving from any other theme using Visual Composer, which can be tricky.

At bottom is also a how-to if you already borked (crashed) your site and are getting server 500 error or similar.

======== Christopher’s how-to theme migration =============

Try this:
1) make backup of your site files, as per usual good practices; use tools to export your database from WP panel. Backup images.

Clear cache.

2) make sure you’re running latest version of WordPress (4.1); v 3.9x has cross-site scripting vulnerability; v4.0 has bugs, fixed in 4.1.

3) switch to default theme (e.g., twenty-twelve); do this before disabling visual composer!!!!!

Clear cache again, as applicable.

4) disable ALL plugins

5) DELETE the original theme folder, delete the original plugins for theme (TD speed booster, TD social, Visual Composer)

Then follow my posts on best way to install theme:

================================================
Make sure you upload only the main theme files; don’t install the “all files” zip from ThemeForest… that has docs, psd files, plugins, etc.

You want to install the smaller of the two files on Themeforest, if you’re installing via theme panel with .zip.

BEST WAY TO INSTALL WP THEMES:
Ideal way is still to
1) unzip theme folder “Newsmag” on your HD
2) upload via FTP/SFTP to your /wp-content/themes/ folder
3) upload the plugins unzipped to /wp-content/plugins/
4) switch to default theme from your old theme [should already be done for migration]
5) turn off *all* running plugins [should already be done for migration]
6) clear your cache(s), turn off caching (!),
7) activate the Visual Composer plugin
8) activate the new Newsmag theme
9) launch the theme panel
10) reactivate only the plugins you 100% need to make sure they work (some plugins WILL NOT WORK properly with WP 4.01 until you update the plugins!).

Clear the cache in your WEB BROWSER FULLY and restart web browser; this clears any CSS/Java used by your previous theme admin, and theme, so that you see the new CSS/JS properly (seriously, this is cause for huge number of “my new theme doesn’t load right” or “admin panel doesn’t have any boxes!” errors).

If you’re running WordPress older than 4.0 be aware there is a very serious cross-site scripting vulnerability (e.g., WP 3.9.2). You should be running WP 4.0+ to use this theme properly.

This is standard practice for switching to a brand new theme and good habit to get into doing it this way to ensure you clear cobwebs on old, and cleanly move to new.

Hope that helps! 🙂

Chris

==========

ADVANCED USERS AND WP-CONFIG FILE:
if you or somebody else optimized your site for better PageSpeed score and increase dbase efficiency, by editing the wp-config.php file to add absolute paths to the theme folder, you will need to remove that line prior to doing any theme switch. Some people forget this step and immediately get a server error trying to change themes in the WP admin panel. You should be making backups of your wp-config.php folder periodically anyway and never hurts to open it and view from time to time.

===========

SITE RESCUE IF ALREADY CRASHED

f you already borked your install and are getting server 500 error or similar you will need to do common procedure to reset WordPress:

1) login via FTP, manually delete both Newspaper and Newsmag themes so that all that is in theme folder is default themes; this forces WordPress to restart with default theme

2) manually delete the Visual Composer plugin so there is no VC folder in plugins

3) rename your plugins folder to pluginsX

4) login successfully

5) go to theme panel and SELECT your default twenty-twelve theme to CLEAR the prior selection in dbase of the Newspaper or Newsmag theme no longer running

6) logout

7) via FTP or server side file manager, rename plugins back to plugins

8) login and make sure site is working

9) then do CLEAN install of the Newsmag theme, plugins

(admin feel free to add this to docs if you wish)

Chris

© 2014 Christopher Simmons. May not be reposted on other websites.

simchris
tagDiv Member

Try this:
1) make backup of your site files, as per usual good practices; use tools to export your database from WP panel. Backup images.

Clear cache.

2) make sure you’re running latest version of WordPress (4.1); v 3.9x has cross-site scripting vulnerability; v4.0 has bugs, fixed in 4.1.

3) switch to default theme (e.g., twenty-twelve); do this before disabling visual composer!!!!!

Clear cache again, as applicable.

4) disable ALL plugins

5) DELETE the original theme folder, delete the original plugins for theme (TD speed booster, TD social, Visual Composer)

Then follow my posts on best way to install theme:

================================================
Make sure you upload only the main theme files; don’t install the “all files” zip from ThemeForest… that has docs, psd files, plugins, etc.

You want to install the smaller of the two files on Themeforest, if you’re installing via theme panel with .zip.

BEST WAY TO INSTALL WP THEMES:
Ideal way is still to
1) unzip theme folder “Newsmag” on your HD
2) upload via FTP/SFTP to your /wp-content/themes/ folder
3) upload the plugins unzipped to /wp-content/plugins/
4) switch to default theme from your old theme [should already be done for migration]
5) turn off *all* running plugins [should already be done for migration]
6) clear your cache(s), turn off caching (!),
7) activate the Visual Composer plugin
8) activate the new Newsmag theme
9) launch the theme panel
10) reactivate only the plugins you 100% need to make sure they work (some plugins WILL NOT WORK properly with WP 4.01 until you update the plugins!).

Clear the cache in your WEB BROWSER FULLY and restart web browser; this clears any CSS/Java used by your previous theme admin, and theme, so that you see the new CSS/JS properly (seriously, this is cause for huge number of “my new theme doesn’t load right” or “admin panel doesn’t have any boxes!” errors).

If you’re running WordPress older than 4.0 be aware there is a very serious cross-site scripting vulnerability (e.g., WP 3.9.2). You should be running WP 4.0+ to use this theme properly.

This is standard practice for switching to a brand new theme and good habit to get into doing it this way to ensure you clear cobwebs on old, and cleanly move to new.

Hope that helps! 🙂

Chris

==========
ADVANCED USERS:
if you or somebody else optimized your site for better PageSpeed score and increase dbase efficiency, by editing the wop-config.php file to add absolute paths to the theme folder, you will need to remove that line prior to doing any theme switch. Some people forget this step and immediately get a server error trying to change themes in the WP admin panel. You should be making backups of your wp-config.php folder periodically anyway and never hurts to open it and view from time to time.

  • This reply was modified 11 years by simchris.
simchris
tagDiv Member

You may want to read up on how to use WordPress from the WordPress Codex; you *can* simply rename the theme folder and CSS name for the theme; which is how it’s done for web development, such as for a client, or better security (we do that here, changing theme name to sitename). If you’re comfortable editing the functions.php file, then changing the theme name is done simply by editing the style.css file which is where WP picks up the theme “name.”

Note it won’t change the theme style classes so somebody can very easily “figure out” which theme you’re actually using, if not the version.

Are you removing all the versioning from your site using the commonly available code to put at bottom of functions.php? That is also recommended to hide versions of WP, and also visual composer (see my separate post on how to also hide that code).

TO THE POINT (sorry!):
You can remove that “theme credit” code from functions.php without anything breaking, but be aware it makes it harder if you ask for tech support in the future if the admin here can’t figure out which version of theme you’re using when looking at your page source to debug any of your possible problems with CSS, customizations or running plugins, etc. If you’re comfortable in remembering to always “state” which version you’re using (and keep track of that somewhere), when needing support, you should be fine. 🙂

We actually use mod_pagespeed which just removes *all* commenting for faster page loading, which is recommended if your hosting provider offers that.

You can also further optimize the install by placing the explicit paths to the new name theme folder in your functions.php folder once you’re “set in stone” (obviously if you switch to another theme from admin, it may break) and also the site name URL, but that’s a bit advanced. Research the WP Codex on how to do many things like this (some of that is in my long winded comments in the Newspaper forum under the “Pagespeed” sticky topic).

Hope that helped, versus annoyed 🙂

simchris
tagDiv Member

Note the “remove_action” section is always useful… note it refers to “visual composer” and “meta data” … this removes the comment printed in the rendered page where it shows “created with visual composer 4.3” or whatever. Annoying.

So, basically that code I posted has (3) sections
1) remove general versioning from normal version strings; might not work on all the tagdiv speedbooster enqued stuff
2) change default thumbnail compression level (default in WP is 90, which is for quality, not speed or best practices, which is the WP mindset — better vs fast …. where 70 would be better default, frankly). 50 works. I think we ended up with 60 on some sites for some odd reason (I think ’60’ worked better with mod_pagespeed on our server for WebP conversion or something). Anything is better than 90!
3) hide the visual composer comment string.

You can actually find all my various pagespeed rantings from the past year on the Newspaper forum in the pagespeed sticky post if you want the whole shebang of stuff I do. Luckily TagDiv put a bunch of that into the standard theme docs now, and they already knew most of that from optimizing the demo sites anyway.

If you want an extra little boost you can also locally host gravatars and also optimize your wp-config file; see the Newspaper forum sticky topic, and simply start at end and work backwards to see all my special tweeks, if curious. I think later in the hundreds of posts I would often “resummarize” things, as well as add tweaks for the gravatars, and such. No point in repeating all of that here again. 🙂

  • This reply was modified 11 years by simchris.
simchris
tagDiv Member

That’s what I thought. I don’t think slider is able to do “double loading” — meaning it’s doing ajax or whatever to load each “slide” as an image, but cannot also do “media query check” as each slide loads, as that would mean reloading the slide every time to check for viewport. Horribly complicated and almost means having to do a viewport check, THEN load “desktop slider” vs “mobile slider” with two different setups; meaning loading both large and small images like is done with logo. Problem there, however, is what size would somebody load for mobile since the viewports vary, and traditionally loading larger image and “scaling” it was fine since you’d get benefit of more pixels for retina without having to actually load a denser image.

In our case to this issue, the solution was running mod_pagespeed on the server as this optimizes and caches the most common “rendered size” — so if 80% of your audience was coming in on iPhone, viewing in portrait, and the 1073 image was loading as 573, then mod_pagspeed would make an optimized 573 size image and cache it; which would speed things up AND help with the “resize image” technical “problem” with mobile.

I cannot stress any more highly the benefit of mod_pagespeed for this kind of issue; and the fact it can generate optimized images for Chrome and other WebP image capable platforms (WebP more efficient than jpg).

If you can use a web hosting company using mod_pagespeed you will be amazed. Of course some CDN providers are now offering this, too, if your hosting provider doesn’t yet do so.

Arved007
tagDiv Member

Hi, Christopher. Images of slider are already optimized. Page Speed says the images are okay for desktop, but for mobile the still have to ve reoptimized or changed for a responsive size, I guess.

simchris
tagDiv Member

Not sure this is the answer, but check to see if the optimized sizes are actually being created; possibly add those sizes as the default sizes under WP > media settings so they are made in addition to the theme sizes. Problem with “mobile” images is they are responsive but no specific phone uses the same “sizes” for the viewport “width” so technically I suppose images will always end up being resized larger or smaller.

Google mod_pagespeed helps with this issue if your server/hosting company offers that.

But try the media sizes being served added to your media settings, regen thumbnails, then retry. Not sure that will solve it, but worth a try.

I admit I have not yet tested my install of Newsmag for page speed as still messing with the home page and logos today 🙂

simchris
tagDiv Member

You can avoid CSS import by not using a child theme.
You can remove query strings by using the functions I have previously recommended for adding to your functions.php file. You can also optimize your thumbnails by editing your functions.php file to set higher compression level for WP, and then run the “Regenerate Thumbnails” plugin.

Add these to bottom of your functions.php file, for one example:

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;' ) );

add_action('init', 'myoverride', 100);
function myoverride() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}

You can optimize your site following the documentation for this theme:
https://forum.tagdiv.com/page-speed-guide/

gazgaz
Participant
#0

installed shop.
when ordering appears incomprehensible code.
Moreover, it appears only in IE.
In Google Chrome’s OK

ie:
http://s017.radikal.ru/i412/1411/d6/7edff2d60762.jpg

google chrome:
http://s57.radikal.ru/i155/1411/c8/cb9203cbeb45.jpg

this is my func file child-theme

<?php

/*  ----------------------------------------------------------------------------
    WordPress booster framework - this is our theme framework - all the content and settings are there
    It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
	include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
}

//Удаление цветовой схемы
remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );

//Редактирование полей в профиле
function modify_contact_methods($profile_fields) {
    // Add new fields
     //$profile_fields['twitter'] = 'Twitter Username';
     //$profile_fields['facebook'] = 'Facebook URL';
     //$profile_fields['gplus'] = 'Google+ URL';
       $profile_fields['dopplr'] = 'VK';
       $profile_fields['delicious'] = 'Battlelog';
	

    // Remove old fields
	unset($profile_fields['google']);
	unset($profile_fields['evernote']);
	unset($profile_fields['dribbble']);
	unset($profile_fields['digg']);
	unset($profile_fields['blogger']);
	unset($profile_fields['deviantart']);
	unset($profile_fields['forrst']);
	unset($profile_fields['github']);
	unset($profile_fields['googledrive']);
	unset($profile_fields['googlemaps']);
	unset($profile_fields['grooveshark']);
	unset($profile_fields['html5']);
	unset($profile_fields['lastfm']);
	unset($profile_fields['linkedin']);
	unset($profile_fields['myspace']);
	unset($profile_fields['path']);
	unset($profile_fields['picasa']);
	unset($profile_fields['pinterest']);
	unset($profile_fields['posterous']);
	unset($profile_fields['reddit']);
	unset($profile_fields['sharethis']);
	unset($profile_fields['slashdot']);
	unset($profile_fields['spotify']);
	unset($profile_fields['stackoverflow']);
	unset($profile_fields['stumbleUpon']);
	unset($profile_fields['tehnorati']);
	unset($profile_fields['sharethis']);
	unset($profile_fields['addthis']);
	unset($profile_fields['behance']);
	unset($profile_fields['tumblr']);
	unset($profile_fields['viddler']);
	unset($profile_fields['virb']);
	unset($profile_fields['windows']);
	unset($profile_fields['woordpress']);
	unset($profile_fields['zerply']);
	unset($profile_fields['paypal']);
	unset($profile_fields['yahoo']);
	unset($profile_fields['vimeo']);
	unset($profile_fields['rss']);
	unset($profile_fields['soundcloud']);

    return $profile_fields;
}
add_filter('user_contactmethods', 'modify_contact_methods');

//Удаление админбара для всех кроме админа
add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}

//логотип при входе
function my_login_logo(){

echo '

<style type="text/css">

#login h1 a { background: url('. get_bloginfo('template_directory') .'/images/logo.png) no-repeat 0 0 !important; }

</style>';

}
add_action('login_head', 'my_login_logo');

//Теперь нам необходимо сделать так, чтобы логотип ссылался не на сайт wordpress.org, а на наш с вами. 
//Тут тоже особо трудного ничего нет, добавляем всего лишь еще одну строку
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') );

//Всплывающую подсказку что сайт работает на WordPress надо тоже убрать, и добавить свою фразу. 
//Тут нам поможет эта строка:
add_filter( 'login_headertitle', create_function('', 'return "Brothers in Games - Сообщество любителей поиграть вместе";') );

//убрали лого из админбара
add_action( 'wp_before_admin_bar_render', function() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}, 7 );

//убрали ненужные виджеты 
function shailan_remove_dashboard_widgets() {
    // Remove Quick Press Widget
    remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
    // Remove Incoming Links Widget
    remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
    // Remove Recent Comments Widget
    remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
    // Remove Latest Plugins Widget
    remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
    // Remove WordPress Blog Widget
    remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
    // Remove Other WordPress News Widget
    remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );
}  
add_action('wp_dashboard_setup', 'shailan_remove_dashboard_widgets' );

//удалили версию из футера админки
function my_footer_shh() {
    remove_filter( 'update_footer', 'core_update_footer' ); 
}
add_action( 'admin_menu', 'my_footer_shh' );

//удалили указание на вп в футере 
function remove_footer_admin () {
echo '';}
add_filter('admin_footer_text', 'remove_footer_admin'); 

//удалили таб помощи сверху
add_action('admin_head', 'mytheme_remove_help_tabs');
function mytheme_remove_help_tabs() {
    $screen = get_current_screen();
    $screen->remove_help_tabs();
}

//убрали метатег из хедера показывающий использование вп
function fjarrett_remove_wp_version_strings( $src ) {
     global $wp_version;
     parse_str(parse_url($src, PHP_URL_QUERY), $query);
     if ( !empty($query['ver']) && $query['ver'] === $wp_version ) {
          $src = remove_query_arg('ver', $src);
     }
     return $src;
}
add_filter( 'script_loader_src', 'fjarrett_remove_wp_version_strings' );
add_filter( 'style_loader_src', 'fjarrett_remove_wp_version_strings' );

//Hide WP version strings from generator meta tag
function wpmudev_remove_version() {
return '';
}
add_filter('the_generator', 'wpmudev_remove_version');

//скрытие пунктов меню слева от посторонних глаз
add_action( 'admin_init', 'my_remove_menu_pages', 999 );

function my_remove_menu_pages() {
    // If the user does not have access to publish posts
    if(!current_user_can('administrator')) {
        remove_menu_page('bsf-dashboard');
	remove_menu_page('wpcf7');
        remove_menu_page('edit.php?post_type=explandict');
        remove_menu_page('tools.php');
    }
}

// get the "author" role object
$role = get_role( 'author' );

// add "organize_gallery" to this role object
$role->add_cap( 'unfiltered_html' );

// убираем инфу о неправильном пароле при входе
add_filter('login_errors',create_function('$a', "return null;"));

// убираем из кода страницы упоминание о Yoast WordPress SEO plugin
add_action('get_header', 'rmyoast_ob_start');
add_action('wp_head', 'rmyoast_ob_end_flush', 100);
 
function rmyoast_ob_start() {
    ob_start('remove_yoast');
}
function rmyoast_ob_end_flush() {
    ob_end_flush();
}
function remove_yoast($output) {
    if (defined('WPSEO_VERSION')) {
        $output = str_ireplace('<!-- This site is optimized with the Yoast WordPress SEO plugin v' . WPSEO_VERSION . ' - https://yoast.com/wordpress/plugins/seo/ -->', '', $output);
        $output = str_ireplace('<!-- / Yoast WordPress SEO plugin. -->', '', $output);
    }
    return $output;
}
Arved007
Participant
#0

Well, I’ve spent some hours trying to get the best score with the Newsmag theme. Right now I’m about 88-90 on dekstop. That’s a good score for me.

http://www.anim-arte.com/

The problem it’s with the mobile score. Google Page Speed gives me something between 52 and 55, and mostly because of some unoptimized images. The images are indeed optimized, cos they are the same as the desktop version. These images are those that come from the slide. You can check the whole review here:

https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.anim-arte.com%2F&tab=mobile

Is there any way to prevent this?

Also, I think we should keep a post in this forum with the page speed topic, for tips and all that stuff. 🙂

simchris
tagDiv Member

You can also use several plugins for WordPress that track down *which plugins* are using the most system resources. JetPack is a huge culprit, most often, which is why we don’t use it here.

There are several, but this might be worth using to evaluate, as starting point
(admin, you may want to add this or similar to support docs)
https://wordpress.org/plugins/p3-profiler/

Using WP-Optimize can also enhance dbase performance.

Emil G
tagDiv Staff

Hi,

The load causes may be multiple, try to follow this guide to optimize your site – https://forum.tagdiv.com/how-to-make-the-site-faster/

And check the discussions on this subject here – https://forum.tagdiv.com/topic/pagespeed/

Thank you, Emil G.

simchris
tagDiv Member

Well, if the “calls” to the italics and other weights are not found in the td_fonts.php, then they can’t magically be added any other way since any other method would simply add another call to Google fonts, when it should be part of the string from td_fonts.php; and the font calls are also optimized by the td-booster system, so best to keep it in one place.

I don’t see any way around NOT editing the td_fonts.php file, so far.

Also note the stuff on my functions.php file hacks – have nothing to do with the fonts. Was just sharing that while on topic of functions.php. Those edits are partially to improve google pagespeed insights.

But wait for Lucian or Marius. 🙂

simchris
tagDiv Member

Normally we convert ALL fonts to Open Sans (with Newspaper, anyway); so typically we would open the style.css, search/replace all fonts to what we want, then edit the functions.php … but now would edit the td_fonts.php to REMOVE all the google fonts not being used; this ensures they don’t “print” in the head/foot of the posts online.

I have not yet done this for the fonts.

For our sites we have to do the following each update
1) update the hook for the post views to “views” from existing field
2) edit the search file to remove breadcrumbs (I don’t need those on indexes for each story)
3) edit functions.php to put various elements for us at bottom, such as changing default compression for images/thumbs, adding note to poke hackers trying the lost password function, turn off XMLRPC elements in header, remove Yoast from menu bar in admin, hide header elements like versions, hide use of visual composer, etc. — many common “optimizations” for WordPress sites.
4) edit header to remove the section for video thumbnails and this stupid thing
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
5) optimize the fonts, by doing the aforementioned house cleaning on style css file, and removing the extra google font calls.

Your mileage may vary 🙂

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
Lucian
tagDiv Staff

Hi,

1. This delay on loading the style usually happens when using speed booster plugin as the style and js is moved to the footer. We will investigate this and hopefully we can provide a solution soon.

2. I have added your site to the page speed test and haven’t found any errors: http://screencast.com/t/fkhhm73Gxunf according to it you have to optimize images and also prioritize visible content.
You can find more info about how to get higher page speed score throughout this topic: https://forum.tagdiv.com/topic/pagespeed/

Thanks

simchris
tagDiv Member

Both themes load super fast with high Google PageSpeed Insights rating if your site and server are properly optimized, which I can confirm from using the Newspaper theme for one year now. BOTH themes great with both server side and plug-in based caching. W3 Total Cache is recommended cache.

See: https://forum.tagdiv.com/page-speed-guide/

simchris
tagDiv Member

Theme loads very fast if you optimize your web server and optimize WordPress, which has nothing to do with the theme. There are many tutorials online with info on how to optimize your site for WP faster loading.

Once your system is properly optimized for speed, you can also add extra features such as caching, and consider using the included WP Speed Booster (may conflict with some oddly coded plugins).

You may find the theme documentation very useful for speeding up the theme on your particular system here:
https://forum.tagdiv.com/page-speed-guide/

Scroll to BOTTOM of the above page for info on using W3 Total Cache with this theme, specifically 🙂

Hope that helps!

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
Ing Geek
tagDiv Member

Bro, install autoptimize or speed booster pack. Thes plugins can unify, compress and send to footer selective js and css to eliminate blocking renders.

Viewing 25 results - 4,176 through 4,200 (of 4,409 total)