Christopher Anderton
Forum Replies Created
-
You can always squeeze images a bit more, but also, you can do it yourself (however, every plugin update, you need to do it again). I used ImgOptim on all image files, and i saved 139,7KB out of 1,3MB with the standard settings (that includes screenshots and so on).
Here is some apps that could help (all of them are free, and i think all of them are Open Source also):
If you use Mac OS X:
Download ImgOptim
https://imageoptim.com/- Drag the application to your Applications folder.
- Launch.
- Drag all images in the plugin folder (i used a simple search for the plugin folder -> kind: images) to the ImgOptim window.
- Wait til it’s done (note: the images/icons will not loose any quality).
If you use Windows
(note: i haven’t tested this app since i’m on a Mac. There may be better options.)Download PNGGauntlet
https://pnggauntlet.com/- Install
- Drag all images in the plugin folder to the PNGGauntlet window.
- Wait til it’s done (note: the images/icons will not loose any quality).
If you use Linux:
(note: i haven’t tested this app There may be better options.)Download and install Trimage (GUI app)
https://trimage.org/
Follow the instructions at the website.On the web:
https://tinypng.com/
https://www.smushit.com/ysmush.it/Moar!
If you want to compress the images/icons even more, you can use apps such as ImageAlpha (OpenSource) + ImgOptim (same developer) on the Mac. If you google around, you will find similar applications for Windows and Linux distros also.Forum: Plugins
In reply to: [Quick Localization (Quick Localisation)] How to find out Plugin "domain"Cheers.
Not all plugins are using a text domain for localization, but most of them do (if not very old ones).Example how to find a plugin text domain:
In this example i’m using the Akismet plugin.- Navigate to the plugin folder
- Find the .php file that is named as the the plugin or similar (in this case:
akismet.php
) - Open the file in a text editor (or the Editor in the WordPress Admin sidebar under ”Plugins”)
- In the beginning of the file you will find the plugin info header, what we do here find the row that says
Text Domain:
- In this example the string is:
Text Domain: akismet
(so, the text domain for this plugin is akismet)
If you look in other the other PHP files in the Akismet plugin folder (that we are using for this example), you will find code like (i added some explaining comments in the code snippet below):
class Akismet_Widget extends WP_Widget { function __construct() { load_plugin_textdomain( 'akismet' ); // Loads the text domain for this plugin parent::__construct( 'akismet_widget', __( 'Akismet Widget' , 'akismet'), /** * 1. * The lowercase "akismet" value is the text domain, and telling the plugin to get the * translation for the words: "Akismet Widget" if there is one. */ array( 'description' => __( 'Display the number of spam comments Akismet has caught' , 'akismet') ) ); /** * 2. * The lowercase "akismet" value is the text domain, and telling the plugin to get the * translation for the sentence: "Display the number of spam comments Akismet has caught" if * there is one. */
Forum: Networking WordPress
In reply to: Loop Loading Time with 10,000s of posts?The loading time depends on the database speed. You can always clean up your database (there are some good posts on the web if you search), or you can use plugins like https://www.ads-software.com/plugins/wp-optimize/ (note: i haven’t tested the plugin way).
Regarding getting posts in a specific date (or any other) range, check the codex:
https://codex.www.ads-software.com/Template_Tags/get_postsCheers.
What theme are you using?
Is the theme up-to-date?
Are you using any plugin?Forum: Themes and Templates
In reply to: [SemPress] Featured Image SizeAlright, this is a old thread. But anyway.
The title doesn’t say so much.You wonder what’s the default dimensions for featured images?
If your open the
functions.php
file, you will find the lines that say:// This theme uses post thumbnails add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 668, 9999 ); // Unlimited height, soft crop // Register custom image size for image post formats. add_image_size( 'sempress-image-post', 668, 1288 );
The numbers are in pixels (max size).
Forum: Themes and Templates
In reply to: [SemPress] Top navigation font sizeYou could add this to your stylesheet:
#access ul a {
color: #A8654E; /*this is the colour you are using at your site*/
}Couldn’t reproduce the issue.
Tested on WordPress 4.0 and 3.9.x updated to 4.0 (theme and jetpack activated before the update) with Jetpack 3.1.1.Do you have any other plugins installed? Does editing the galleries work with other themes (like Twenty fourteen)? Can you edit the galleries if you disable Jetpack?
Cheers
Couldn’t replicate this on WordPress 4.1-alpha (vanilla install for the occasion) with Twenty Fourteen (haven’t tried the others) in Chrome v37.0.2062.124 or Chrome Canary (MacOS X 10.9.5).
However, check what extensions you have (if any) installed in Chrome. Some inject Javascript or other scripts to pages (found out once when i tried to fix strange behaviour in a theme. Took me one week).
Forum: Themes and Templates
In reply to: [First] Header image not. workingCheers, i tried to replicate your issue on 3 installs (3.9, 4.0 and 4.1 nightly) but uploading a header image in the theme customizier works just fine.
Have you tried with activating a WordPress standard theme (like twentyeleven) and then see if there is the same problems? If so, you may have the wrong permissions in the upload directory.
Forum: Themes and Templates
In reply to: [Fukasawa] how to delete featured image from the top of the postksea ->
You could create a quick child theme for this, removing the the_post_thumbnail for single post views.I created a quick and simple child theme that removes featured images from the single post view.
You can find it here:
https://github.com/christopheranderton/diet-fukasawaDirect download:
https://github.com/christopheranderton/diet-fukasawa/archive/master.zipCheers!
I agree that it was ”hard” to find. I didn’t see anything about this in the Codex at first or at the Theme Review Guidelines (needs to be updated here and there. I follow the discussions at the Trac and the mailingslists).
For others just stumble upon this thread, the info about this is:
https://www.ads-software.com/themes/tag-filter/ (Valid Theme Tag Filter Tags)
https://codex.www.ads-software.com/Version_3.8Forum: Requests and Feedback
In reply to: 3.8 admin panel design is very badNordi C. Considering that mobile/handheld (web) use is growing at rapid rate (Where i live in Sweden, the stats tell us that 90% is using a smartphone for internet everyday. In Russia, it’s 29% and growing), there is no reason to stay with ”outdated” conventions. If people using WordPress on their handheld devices? Yes, they actually do (i use my Ipad everyday), and even if you don’t do the same things on your handheld as in your desktop browser, the use of WordPress in mobile is growing.
The 3.8 Admin is not ”Mobile UI” (if you don’t use it on your desktop at a 320×240 resolution ?? ) it’s just responsive, something developers and designers have been doing since 2010.
Of course there are apps for this (choice is good!).
The Admin design? Well, there are some issues (will be a ticket in the Trac). However, it’s not THAT radical change concerning the workflow. The UI (now we are not talking about the design style) is still the same (almost everywhere).
Use a plugin, create your own color scheme (https://www.ads-software.com/plugins/admin-color-schemer). It’s also easier than ever to create your own plugins!
MrsJessicaSimpson ->
Developers of word-press please note, you cannot treat users like this. This foolish, ‘mobile-ready-upgrade’ : Completely breaks the trust you’ve developed with the community over the years.
Let’s break it down here.
- ”Developers of word-press please note”: WordPress is a open source project with many developers from around the globe. It’s not a company. You can also join in. If your really want to the UI devs to note your ”concerns”, your way is the wrong way.
- you cannot treat users like this: That’s YOU, not everyone. Big difference. It’s funny, because almost the same type of comments was said over the pre 3.8 Admin Design. It’s actually quite common when the design of whatever application/site is changed or not.
- This foolish: Based on what?; You? All WordPress users? The general public? The local WordPress Shaolin Master?
- mobile-ready-upgrade: Welcome to 2013. This is what web developers and designers have been doing since 2010.
- Completely breaks the trust you’ve developed with the community over the years: First, the developers is the community. The community is the developers. Second. That’s your opinion, not a fact.
Others. If you don’t like things, that’s alright. But keep things constructive. Look at Marcus Fridholms post earlier for ”inspiration”?on how to write critique the right way.
Forum: Themes and Templates
In reply to: [Point] Author BoxI don’t know (in a rush, so i don’t have the time to install it on my devbox), but with most themes, you add your info in your profile (in the WordPress Admin. In the sidebar to the left, under ”Users”). There you can set ”About you”.
For the author picture, i think (most themes do) it just grabs the Gravatar (gravatar.com) picture for your email (in the Profile settings).
https://codex.www.ads-software.com/How_to_Use_Gravatars_in_WordPressIf you want to use another picture instead of the Gravatar one, use a plugin:
https://www.ads-software.com/plugins/search.php?q=avatar&sort=
Remember to do theme adjustments if necessary.Forum: Plugins
In reply to: [Coming Soon / Maintenance mode Ready!] Bug – Disables WP Built-in InstallerCannot replicate on three different installs.
Be sure to check that you don’t have any active plugins that may conflict. Also, if using a ”premium” theme, check if the theme is using the WordPress stock Jquery (is quite common for many of them use a CDN hosted Jquery, with other versions than the WordPress core one. Also check if the theme (if in use) using lot’s of scripts that may be included the wrong way.
Forum: Themes and Templates
In reply to: [Bearded] Broken in 3.8 with Debug TrueAnother update. A workaround is to set:
error_reporting( E_ALL ^ E_STRICT );
instead of
define( "WP_DEBUG", true );
in
wp-config.php
when developing.Related thread: https://www.ads-software.com/support/topic/warnings-on-php-55