Site logo

Archived topic

customize header structure

7 replies · Started by boaz on July 13, 2021

Viewing posts 1–8 of 8

Hi,
im trying to move an element i created using the generate_inside_navigation hook to the right end of the navigation container,
navigation print screenfloat:right is not working for me.
.inside-navigation element does not take full width of container.

add_action( 'generate_inside_navigation','after_navigation_element' );  
function after_navigation_element() { ?> 
    <div class="after-nav">after navigation</div>
<?php }

CSS:

.after-nav {
	order:1;
}

any idea how to achieve this ?
Thanks

Hi there,

if i understand correctly then try this:

#site-navigation {
    flex: 1;
}

.after-nav {
    order:1;
    margin-left: auto;
}

Hi David, it now goes before the navigation on the left. i need it to go the far right...

Hi there,

I've checked the site and I don't see it at all.

I did some test by using David's CSS and here's the result -

It seems to be working as it's going to the far right. Perhaps it's how the CSS has been added? Can you tell us how you've added the CSS?

Let us know.

Let me check again

I removed the video.
Let us know.

Hi,seems to work now.
perhaps was cache issue.
Thank you

Glad to hear that

This archived topic is closed to new replies.