Syahir Hakim
KeymasterKuala Lumpur, Malaysia
When not perched on my workspace, I tremendously enjoy hiking in the bushes and climbing mountains. They serve as much-needed refuges from the pretense of cities.
Forum Replies Created
-
Admin
Try this:
function graphene_filter_gettext( $translated, $original, $domain ) { $strings = array( 'Category: <span>%s</span>' => '<span>%s</span>', ); if ( ! empty( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );Admin
In reply to: Fatal error: Allowed memory size of 67108864 bytes exhausted
April 5, 2018 at 4:42 am #49359The error means the server is not getting sufficient memory allocated. See this post on how to increase the memory limit for WordPress: http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
Admin
Theres a Graphene2 check box to remove the display of author if that wasnt previously present too.
We noticed that many of the theme’s users are not aware of the author bio feature, which is enabled by default. This results in a rather unappealing display of empty author bio box other than the author’s username and default avatar.
In the next update of the theme, we’ll include a once-off check to see if the author bio should be disabled. If the site has only one author, and that author has empty bio text and social profile links, the theme will automatically disable the author bio feature. This check will occur only once, and theme users can simply re-enable the feature if they decide to use it in the future.
Admin
Seems like your website has mismatching URL. The page URL contains
wwwbut the links to scripts does not. This is triggering a browser policy that cancels loading of those scripts.Check your Site Address and WordPress Address setting in WP Admin > Settings > General, and make sure either both have
wwwor don’t havewww.Admin
Thanks for the report. We’ll include the fix in the next theme update.
Admin
Sure. We’ve pushed an update to fix the PHP notice. If you’re not seeing the update notification on your site, you can download the plugin again from this page: https://www.graphene-theme.com/franz-josef/addons/graphene-shortcodes/
Admin
Why doesnt the image scale rather than crop to smaller spaces?
The aim is to ensure the available space is filled. The image is first cropped to a best-guess estimate of the slider’s dimension, and then scaled so that it completely fills the container it’s in. See this page on how this property works: https://css-tricks.com/almanac/properties/b/background-size/
This way, we can balance between performance (cropping and resizing reduce the image file size) and appearance (ensuring available space is filled).
And also CARD option ratio is almost square 1:1 ratio, and STANDARD is wide 3.84:1 ratio. Wouldn’t it make sense to use “thumbnail”, “large” or another image size thumbnail with 1:1 ratio for CARD option and “graphene_slider” for STANDARD slider? This would be MUCH easier to create and control slider images.
As I mentioned earlier, these ratios can and do vary widely. The image is almost square in card option only if you’re using the default settings. If you change the content column layout, column width, extend the slider to full width, or choose a number of other different settings, the slider image dimension in card option will change significantly and won’t be square anymore. The same goes for the other slider display options.
In the next update, we’ll be including a routine that will better estimate the actual dimension of the image required based on the many different settings that can affect it. This can never be 100% precise though, so some allowances will still have to be made.
Admin
In reply to: Scrolling acts different depending upon the category chosen
April 2, 2018 at 10:39 pm #49342Looks like it’s the size of the header image throwing off the script that controls the sticky menu behaviour.
Try resizing your header image to, say, 94×92 pixels instead of the current 940×921 pixels. That will help make your site load faster too.
Admin
In reply to: How to control the slider images cropping and display?
April 2, 2018 at 10:32 pm #49341The slider is still using the
graphene_sliderimage size. The difference now is that the following CSS style is being applied on the slider image:.carousel .item { background-size: cover; background-position: center center; }That does two things:
- If the slider image is smaller than the slider’s available space, enlarge the image to cover the available space.
- Center the image within the available space.
This ensures that the available space for the slider image is always fully covered and no empty whitespace is left. We had to do this since Graphene users can use arbitrary slider width and height, so we can’t fix a single dimension for the slider image.
The side effect of this is some part of the image’s edges may not be visible, especially so if the image’s aspect ratio is significantly different than the slider’s aspect ratio. You should still be able to use plugins like Post Thumbnail Editor to manually crop the image. Just make sure you’re cropping to the exact slider image dimension as per applicable to your site.
Even then, the dimension will still be adjusted according to the device the website is displayed on. On smaller devices like tablets and phones, you will see different image dimension than on a desktop PC.
Because of this large variability, perhaps the best solution is to make sure any image you use for the slider has some margin of “croppable” area around the image.
Admin
Hi Marcel,
The PHP notice points to the “Widget Options” plugin. To confirm, try deactivating that plugin and see if the notice disappears.
