Syahir Hakim

Keymaster

Forum Replies Created

  • Admin

    In reply to: Extended slider problem

    #27521

    … but I would prefer using the method I was using before, rather than your code as it is now, if only because it allows me to try more custom things with the slider.

    🙂

    May be so, but it has one important caveat: you will lose those changes when you update the theme. So you’re stuck between not updating the theme, or having to make the changes again when you update.

    But since you seem to be quite comfortable with that, I’m gonna stop here.

    Admin

    In reply to: Widgets with squared corners

    #27617

    For properties that need numerical values, you use 0. For properties whose features are defined by other than numerical values, you use none.

    Examples:

    border-radius: 0

    By definition, radius must be some numerical value. Even though border radius of 0 effectively means no radius, you must have some numerical value to define a radius other than 0.

    border: none

    Even though you would think that border needs numerical value to define the width of the border, in this case border is actually a shorthand of multiple border properties. Specifically, you can specify the following properties of the border inside just that single line of border: values property:

    border: <border-width> <border-style> <border-colour>

    As you can probably guess, border-width takes numerical value, e.g. 0.

    border-style takes the type of style to use, e.g. solid for solid line, or simply none, means no style, which effectively means no border.

    border-colour takes a colour value to be applied to the border.

    So when you write border: none, it’s the same as writing border-style: none. When writing border: 0, it’s the same as writing border-width: 0. So in this case, because of the shorthand property border, both 0 and none will work.

    Other examples:

    margin: 0
    padding: 0
    list-style: none
    background: none
    text-decoration: none

    Note that it’s not necessary to write 0px. Just 0 will do.

    Admin

    In reply to: How can I change my theme font size.

    #27625

    WP Admin > Appearance > Graphene Options > Display > Text Style Options.

    Admin

    In reply to: Problem with tags

    #27628

    This is a bug in the particular version of the theme that you’re using. It has been addressed since.

    Just update the theme to the latest version and the issue should be fixed.

    Admin

    In reply to: Question on where to add tracking code

    #27627

    You would need a child theme for this. See this page for guide on how to create a child theme:

    http://wiki.khairul-syahir.com/graphene-theme/wiki/Customisation_using_a_child_theme#How_to_create_a_child_theme

    When you’ve done that, create a functions.php file inside your child theme. Then, add this code into that file:

    <?php
    function fsp_phone_tracker(){
    ?>
    <!-- Place the tracking codes to be put near the closing </body> tag here -->
    <?php
    }
    add_action( 'wp_footer', 'fsp_phone_tracker' );

    function fsp_rztrkr(){
    ?>
    <!-- Place the tracking codes to be put inside the <head> tag here -->
    <?php
    }
    add_action( 'wp_head', 'fsp_rztrkr', 5 );
    ?>

    And that should do it.

    Admin

    In reply to: Portfolio (images in grid from archive categories)

    #27622

    It’s probably best to use a plugin for this. For images, NextGen Gallery is a good one.

    Admin

    In reply to: Extended slider problem

    #27519

    You still can. Remove the margin and replace all instances of

    graphene_grid_width( '', 16 )

    with

    graphene_grid_width( 20, 16 )
    Admin

    In reply to: Extended slider problem

    #27517

    Scrap all the changes that you’ve done, and follow these steps instead:

    1. Place this code into your child theme’s functions.php file:

    /**
    * Move slider to outside of the #content-main div
    */
    function graphene_move_slider(){
    global $graphene_settings;

    if ( ! $graphene_settings['slider_position'] ){
    remove_action( 'graphene_top_content', 'graphene_display_slider' );
    add_action( 'graphene_before_content-main', 'graphene_display_slider' );
    } else {
    add_action( 'graphene_bottom_content', 'graphene_display_slider' );
    }
    }
    add_action( 'template_redirect', 'graphene_move_slider' );

    /**
    * Adjust the width of the slider container
    */
    function graphene_resize_slider(){
    $width = graphene_grid_width( '', 16 );
    echo '<style type="text/css">.featured_slider, .slider_post {width: ' . $width . 'px !important;}</style>';
    }
    add_action( 'wp_head', 'graphene_resize_slider', 1000 );

    /**
    * Adjust the slider's background image width
    */
    function graphene_resize_slider_image_width( $width ){
    return graphene_grid_width( '', 16 );
    }
    add_filter( 'graphene_slider_image_width', 'graphene_resize_slider_image_width' );

    2. Place this code into your child theme’s style.css file:

    .featured_slider {
    margin-left: 10px;
    }

    And…. voila!

    Note that you would need to rebuild your thumbnails for the slider’s background images to reflect the new size. I would recommend the AJAX Thumbnail Rebuild plugin.

    Admin

    Nice customisation!

    Add this to your Custom CSS or your child theme to fix the location of the down-pointing arrow in the menu:

    #header-menu > li.menu-item-ancestor > a {
    background-location: -877px -228px !important;
    }
    #header-menu > li.menu-item-ancestor:hover > a,
    #header-menu > li.current-menu-item > a,
    #header-menu > li.current-menu-ancestor > a {
    background-position: -877px -184px !important;
    }
    Admin

    In reply to: I am without being banned from the forum.

    #27599

    You should be able to access the forum now.

Viewing 10 posts - 3,391 through 3,400 (of 6,030 total)