WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] background and menu bar (5 posts)

  1. dutchy77
    Member
    Posted 7 months ago #

    I have created a website: http://www.artention.nl, but I want to do two things:

    1. I want the background to be of a different colour or have a carbon texture and there fore I want to change the colour of the text as well.

    2. I want a bar between the slider and logo (currently small gray one), complete width of the page and starting in de left hand corner five items of a menu, professional shaped.

    Does anybody have any idea how to manage that?

  2. acub
    Member
    Posted 7 months ago #

    For the background part, add this into custom CSS panel (Dashboard > Appearance > Customize)

    body, .tc-header {
    	background: #DDD;
    }
    .round-div {
    	border-color: #DDD;
    }

    You may change #DDD to any other valid html color-code.

    For the 2nd part, I really don't understand what you want. Try to use objective descriptions when you ask for modifications. You said "professional shaped" but whatever looks "professional" to you might look "unprofessional" to me and vice-versa. Instead, just use a link or a picture if you can't describe what you need in plain English.

  3. dutchy77
    Member
    Posted 7 months ago #

    Thanks, background works.

    I want the menu bar to look something like the menu bar on this site: http://www.airliners.net/ . The top menubar.

    And I want this menubar placed below the slider.

  4. dutchy77
    Member
    Posted 7 months ago #

    thanks that worked.

  5. acub
    Member
    Posted 7 months ago #

    Here's a snippet on how to add extra menus to Customizr. In your case, for adding the menu under the slider, the php would have to look like this:

    add_action( 'init', 'register_secondary_menu' );
    function register_secondary_menu() {
        if ( function_exists( 'register_nav_menu' ) ) {
            register_nav_menu( 'secondary-menu', 'Secondary Menu' );
        }
    }
    
    add_filter('tc_slider_display', 'display_menu_under_slider');
    function display_menu_under_slider($output) {
    	ob_start();
    	echo (has_nav_menu( 'secondary-menu' ) ? wp_nav_menu (
            array (
                'theme_location' => 'secondary-menu',
    			'container_id'    => 'secondary-menu',
    			'container_class'    => 'secondary-menu'
            )
        ).'<div class="clearall"></div>' : '' );
    	$secondary_menu = ob_get_contents();
    	ob_end_clean();
    	return $output.$secondary_menu;
    }

    However, you have to come up with the CSS for this menu yourself. Note that the menu will appear under Customizr sliders even if you're not on home page.

Reply

You must log in to post.

About this Theme

About this Topic