Syahir Hakim

Keymaster

Forum Replies Created

  • Admin

    In reply to: Global Main Nav for Multisite

    #30004

    Try this:

    function sync_main_site_nav( $args ){
    if ( $args->theme_location == 'Header Menu' ) {
    global $blog_id, $current_blog_id;
    $current_blog_id = $blog_id;
    switch_to_blog(1);
    }

    return $args;
    }
    add_filter( 'wp_nav_menu_args', 'sync_main_site_nav' );

    function reset_site_nav( $nav_menu, $args ){
    if ( $args->theme_location == 'Header Menu' ) {
    global $current_blog_id;
    switch_to_blog( $current_blog_id );
    }

    return $nav_menu;
    }
    add_filter( 'wp_nav_menu', 'reset_site_nav', 10, 2 );
    Admin

    In reply to: Global Main Nav for Multisite

    #30002

    Not sure if this will work, but try:

    function sync_main_site_nav( $args ){
    if ( $args['theme_location'] == 'Header Menu' ) {
    global $blog_id, $current_blog_id;
    $current_blog_id = $blog_id;
    switch_to_blog(1);
    }

    return $args;
    }
    add_filter( 'wp_nav_menu_args', 'sync_main_site_nav' );

    function reset_site_nav( $nav_menu, $args ){
    if ( $args['theme_location'] == 'Header Menu' ) {
    global $current_blog_id;
    switch_to_blog( $current_blog_id );
    }

    return $nav_menu;
    }
    add_filter( 'wp_nav_menu', 'reset_site_nav', 10, 2 );
    Admin

    In reply to: Feeling dumb here

    #29936

    The slider is not built for what you’re trying to achieve. You might want to ditch the built-in slider altogether and go with other slider plugins.

    Admin

    In reply to: Linking to an external css stylesheet

    #29989
    Quote:
    I am using a child theme. I would much rather create internal stylesheets and put code into the child theme style sheet.

    If you’re using a child theme, just place all of the additional CSS into the child theme’s style.css file. There’s no need to create another separate CSS file.

    Admin

    In reply to: Graphene slider help

    #29919
    Quote:
    i have just installed Graphene and i like it but the news slider can i change that in to a picture slider with links.

    Go to Graphene Options > Slider Options, and select “Background image and excerpt” for the “Slider display style” option.

    Admin

    In reply to: Random link assignments

    #29935

    The links that you put in the left sidebar are all unclosed, hence causing the issue. Every link element should be like this:

    <a href="http://some.url">Some content</a>

    Notice the closing </a>.

    Admin

    In reply to: centering container with left sidebar

    #29966

    It’s centered now. Try clearing your browser cache if it isn’t.

    Admin

    In reply to: centering container with left sidebar

    #29964

    The container should be centered by default. If it’s not, something else is messing with the layout. Try deactivating all plugins and see if the container is centered.

    Also, I noticed that there’s inline styles for the <body> element that’s setting the width of the body to 290px and height to 170px. Find what’s adding this inline style to the body element and you’ll find your root cause.

    Admin

    In reply to: Random link assignments

    #29932

    Moved to Support. Please post in the correct section next time.

    Also, please provide a link to the page on your site where this issue is happening so that we can take a look.

    Admin

    In reply to: How to change colour of bullets ?

    #29930

    Or you can also revert it to the default black circle:

    .entry-content ul li {
    list-style: disc;
    }

Viewing 10 posts - 3,041 through 3,050 (of 6,030 total)