Syahir Hakim

Keymaster

Forum Replies Created

  • Admin

    In reply to: How to edit the caption "author" in the comments

    #49362

    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

    The 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

    In reply to: All navigation graphics have disappeared

    #49356

    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

    In reply to: All navigation graphics have disappeared

    #49353

    Seems like your website has mismatching URL. The page URL contains www but 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 www or don’t have www.

    Admin

    In reply to: Unidentified Index error

    #49352

    Thanks for the report. We’ll include the fix in the next theme update.

    Admin

    In reply to: Graphene Widgets Notice

    #49350

    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

    In reply to: How to control the slider images cropping and display?

    #49345

    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

    Looks 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?

    #49341

    The slider is still using the graphene_slider image 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:

    1. If the slider image is smaller than the slider’s available space, enlarge the image to cover the available space.
    2. 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

    In reply to: Notices when creating a child theme

    #49337

    Hi Marcel,

    The PHP notice points to the “Widget Options” plugin. To confirm, try deactivating that plugin and see if the notice disappears.

Viewing 10 posts - 421 through 430 (of 6,030 total)