Archived topic
Page Header Image
16 replies · Started by Tony on January 29, 2016
Is it possible to enable a soft crop of the image with a defined size instead of just the hard crop?
Is it just a change from 'true' to 'false' in the code somewhere?
If you leave one of the values blank or give them the value of '9999', soft crop will be enabled and will take the resize proportionally from the real value.
If you set image width to 9999 and the height to whatever size you require this works but, so far as I can see not the other way i.e. Width to required size and height to 9999.
Should it work both ways? Would be nice if it did.
Also sizes featured image as they both use the same variable (or whatever it's called).
Leave the height blank or set it to 0 and it should work :)
No, fail.
set width to, say, 200px and height to 0 or 9999 or blank and width is set to 200px and height is not scaled.
http://loveitphotography.uk/uncategorized/blog-4/
reply above. This in error
Interesting - looks like a bug.
I'll get the fix into the upcoming version.
Thanks!
This has been fixed in the upcoming version :)
I have updated the theme and it is not fixed - still as above
The theme doesn't have the page header functionality - GP Premium/Generate Page Header does.
The fix will be in those updates :)
OK thanks - my bad.
Is there a list of changes/fixes etc. in the latest theme release?
I've looked but can't see one.
Absolutely - all changes can be found here: https://generatepress.com/category/development/
I have replaced my back to top plugin with yours - one less thing to go wrong thank you!
--------------------------
Where do I find filters and their parameters please?
I guess my question really is - how do I set them?
New filter: generate_back_to_top_icon
New filter: generate_back_to_top_scroll_speed
New filter: generate_back_to_top_start_scroll
---------------------------
What is 'schema.org' and what is the benefit of 'Improve schema.org handling?
Should I know about this? I'm guessing it's a list of variables but for css or php?
---------------------------
Is there a custom php function like the custom css?
You can see how to add filters here: https://generatepress.com/knowledgebase/filter-list/
You only need to use them if you want to change something about the button.
Schema is a way for your website to communicate with search engines - it lets them know which element is the page headline, which element holds your content etc.. No need for you to do anything about it :)
As for the custom PHP option, this might help: https://generatepress.com/knowledgebase/adding-php-functions/
