Syahir Hakim

Keymaster

Forum Replies Created

  • Admin

    In reply to: Slider – displaying custom post types

    #49666

    Copy and paste the following code into your child theme’s functions.php file:

    function my_graphene_slider_post_type( $post_types ) {
    	return array( 'post', 'custom-post-type' );
    }
    add_filter( 'graphene_slider_post_type', 'my_graphene_slider_post_type' );
    

    Replace custom-post-type with your own custom post type. In the above example, the standard “post” post type will also be displayed in the slider. If you don’t want that, just remove the “post” post type so the code looks like this:

    return array( 'custom-post-type' );
    
    Admin

    In reply to: Missing dependency – Comment-reply

    #49665

    In previous version, the line that specifies comment-reply.js as dependency is this:

    wp_enqueue_script( 'graphene', GRAPHENE_ROOTURI . '/js/graphene.js', array( 'bootstrap', 'comment-reply', 'infinite-scroll' ), $version );
    

    In WordPress, whenever you reply a script as a dependency for another script, that script will automatically be loaded first before the dependent script is loaded. Therefore, there’s no need to have a separate call to queue the dependency scripts, unless those scripts have not been registered yet.

    In the current version, we’ve changed the script loading to this:

    if ( ( get_option( 'thread_comments' ) == 1 ) ) wp_enqueue_script( 'comment-reply' );
    wp_enqueue_script( 'graphene', GRAPHENE_ROOTURI . '/js/graphene.js', array( 'bootstrap', 'infinite-scroll' ), $version );
    

    In this version, the comment-reply.js will only be loaded if threaded comments is enabled in WordPress discussion settings.

    Admin

    In reply to: Menu CSS

    #49664

    The footer menu is using different selectors. Try this:

    @media (min-width: 768px){
    	#menu-footer-menu {
    		text-align: center;
    		width: 100%;
    	}
    	#menu-footer-menu>li {
    		display: inline-block;
    		float: none;
    	}
    }
    
    Admin

    In reply to: Amazon affiliate Links Not Showing Up

    #49663

    Looks like the URL for the affiliate image is referring to a location on your server instead of Amazon:

    http://trailsnet.com//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B006O2KPUS&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=trailsnet-20
    

    Should be this way:

    http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B006O2KPUS&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=trailsnet-20
    

    When you enter the code, try using the full URL including the https:// at the beginning of the URL.

    Admin

    In reply to: Mobile Neo and Grephene Plus

    #49662

    We are targeting a July release window, with the upcoming version 2.5.

    Admin

    Thanks for the temporary administrator account details. We’ve been able to identify the fixed the issue for your site. We’ll include the fix in the next theme update.

    Be sure to clear your browser’s cache before testing it out. You may also remove the temporary administrator account.

    Admin

    In reply to: option edit article

    #49642
    Admin

    In reply to: Missing dependency – Comment-reply

    #49641

    The comment-reply.js script is only loaded if threaded comment is enabled in WP Admin > Settings > Discussions. We’ll remove this dependency in the next theme update.

    Admin

    In reply to: Dropdown Menu Mobile

    #49640

    Menu levels are defined as such:

    Parent item <- first level
    - child item <- second level
    -- grandchild item <- third level
    etc.
    

    In the case of the Franz Josef theme, as of the current version the grandchild item and below would not be displayed when viewed on mobile devices.

    Updates will be provided through the standard WordPress auto-update feature. You’ll see a notification on your WordPress dashboard when an update is available.

    Admin

    In reply to: Featured Image in facebook posts

    #49639

    At the moment, Graphene only generates the Schema microdata in the JSON+LD format. While this caters to most major search engines, Facebook unfortunately does not use this format, preferring instead the Open Graph format.

    In the next update, we’ll be adding Open Graph equivalent of the schema microdata into the theme. You should see more consistent sharing across platforms then.

Viewing 10 posts - 321 through 330 (of 6,030 total)