At first, I thought, wow, how am I ever going to understand how to optimize my sites with this program? I started with the basics and over time got better at keeping my sights clean. It makes a difference! They load so much better, visitors stay longer, etc.
Oh, and I don’t mess with the stuff that says things like ‘unless you’re a developer, don’t use this.’
]]>The goal is to save server disc space.
First I’m going to set full size at 1200 px.
I’m absolutely sure I won’t need other sizes than the thumbnail
(medium
at most) and the full
of any image uploaded to a gallery.
How to set a conditional – while inserting the Gallery block skip creating intermediate image sizes: medium_large
, and large
, but leave them for every other use case?
As you know, you are unable to translate LernPress Difficulty Level (Beginner, Intermediate, Expert) by using Loco translate. It will translate only on back-end (admin panel), but on a front-end will not (will not translate on a course page).
So, what do we need to translate LernPress Difficulty Level (Beginner, Intermediate, Expert) on a course page?
1. Go to “wp-content/plugins/learnpress/inc/admin/views/meta-boxes/course/” and take “setting.php” file.
2. Find:
array(
'options' => array(
'' => esc_html__( 'All levels', 'learnpress' ),
'beginner' => esc_html__( 'Beginner', 'learnpress' ),
'intermediate' => esc_html__( 'Intermediate', 'learnpress' ),
'expert' => esc_html__( 'Expert', 'learnpress' ),
),
)
),
and replace to whatever you want, for example:
array(
'options' => array(
'' => esc_html__( 'All levels', 'learnpress' ),
'Начальный' => esc_html__( 'Начальный', 'learnpress' ),
'Продвинутый' => esc_html__( 'Продвинутый', 'learnpress' ),
'Экспертный' => esc_html__( 'Экспертный', 'learnpress' ),
),
)
),
3. But it’s not done yet. You need to update your course. Go to admin panel->courses, choose course, then edit course, choose Difficulty Level and save your course.
4. Now you will see translated words on yours course page.
How does it works: LearnPress back-end writes the words to database during the course creation or updating process. Then, LearnPress front-end takes the words from database. It’s mean, that words: “beginner, intermediate, expert” stores in database. When we changed setting.php file, and then updated the course, LearnPress wrote to database new, translated words.
]]>I’ve bought or played with virtually all the other WP page builders out there… ones worth using are expensive, most even require annual payments to use their best features or get updates. Some try to be all things to all people and trade the problem of effectively designing a WordPress webpage with the problem of a steep learning curve.
To be honest, I haven’t found “the one” page designer that effectively balances simple with effective. I believe all page builders will be of the drag-n-drop, full-width, content-block variety in the near future, so you guys are right in the sweet=spot.
Before you launch the pro version (you know you’re going to, don’t cha.), can you soft launch it to all your current users at a special (low) one-off price for unlimited sites? Consider me first in line! As soon as this thing gets traction, it’s going to BLOW UP!
Thank you for such an elegant solution to a wide-spread WP problem. Can’t wait to see where you take it from here.
KS
]]>Is there a way to change this without hacking WP’s core so that instead images will be named with only the width attribute? ie. test-photo-640.jpg?
Ideally, I’d still like to be able to use native WP functionality and not use an outside library such as TimThumb to create the resized versions.
Would there be some type of regex work-around I could use that would read the characters from the ‘x’ to the ‘.’ of the extension and remove that? So, in my above example, it would remove the ‘x480’ from ‘test-photo-640×480.jpg’.
Or, is there a better way to do this by hooking into a WP function and changing how it names intermediate sizes?
Looks like maybe the functions on these lines 389 or 432 in wp-includes/media.php is where the intermediate sizes are named/created?
]]>Thanks!
]]>