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 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
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
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
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.cssfile. There’s no need to create another separate CSS file.Admin
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
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
It’s centered now. Try clearing your browser cache if it isn’t.
Admin
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
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
Or you can also revert it to the default black circle:
.entry-content ul li {
list-style: disc;
}
