Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter hesselhaker

    (@hesselhaker)

    That did the trick! Thanks a lot for looking into this! And sorry for the (in hindsight) somewhat ignorant question. It’s good to have helpers like you in this forum!

    Thread Starter hesselhaker

    (@hesselhaker)

    Hi ElectricFeet,

    Yes, there is just two files in the childtheme with the paths: themes/childtheme/filename

    This is the php file:

    <?php
    
    add_action( 'init', 'register_secondary_menu' );
    function register_secondary_menu() {
        if ( function_exists( 'register_nav_menu' ) ) {
            register_nav_menu( 'secondary-menu', 'Secondary Menu' );
        }
    }
    
    add_action('__header', 'display_secondary_menu', 1000, 0);
    function display_secondary_menu() {
    	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>' : '' );
    }

    And this is the style.css

    /*
    Theme Name:     Customizr Child
    Theme URI:      http://themesandco.com/customizr
    Description:    A child theme for the Customizr WordPress theme. This child theme simply includes 2 files : style.css to add your custom css and functions.php where you can extend Customizr's core code. In order to keep your code as clean and flexible as possible, try to use Customizr's hooks API for your customizations. Do something awesome and have fun !
    Author:         Nicolas Guillaume (nikeo)
    Author URI:     http://themesandco.com
    Template:       customizr
    Version:        1.0.0
    */
    @import url(".../themes/customizr/style.css");
    
    .tc-header .brand {
    text-align: right;
    }
    
    #secondary-menu ul {float:right; text-align: center; list-style-type: none;}
    #secondary-menu ul li {float:right; display: inline-block; padding: 0 5px;}
    
    .navbar .nav li.join_now.btn {
    position: relative;
    bottom: 6px;
    padding: 2px;
    line-height: 19px;
    vertical-align: middle;
    }
    .navbar .nav li.join_now.btn a {
    color: #FFF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.31);
    padding: 3px 15px;
    }
    /*The below code doesn't seem to work*/
    .navbar .nav li .menu-item-404  > a {
    float: right;}
    
    .my-no-flag > a {
        float: right;
    }
    .my-de-flag > a {
        float: left;
    }
    /*Reduce space around horizontal divider*/
    .featurette-divider {
      margin: 15px 0;
    }
    article.sticky {
    text-align:left;
    }
    footer#footer {
    text-align:center;
    }
    .footer-widgets, #textwidget, img {padding 5px 5px 5px 5px}

    Thread Starter hesselhaker

    (@hesselhaker)

    Well, found this excellent thread, which should get me what i want:

    Did what user acub suggested, so also added the suggested css in my child themes’ style.css.

    Activated the secondary menu, but it renders this secondary menu outside and below the navbar block (between menu block and slider).

    I would like the secondary menu to be just the same as the main menu, even on the same line, but merely floating right instead of left.

    Don’t know where to start to do so. Just gave it a shot editing class-header-menu.php, adding the below code. It didn’t have the desired effect. (In fact, it gave me two secondary menus, one below the navbar as before and one as an extension of the left floating main menu.) Guess there is some classes to be set, but don’t know where or how.

    Anybody a bright idea? This is the site, but I have unpublished the secondary menu: http://www.volunteeringnorway.no

    //renders the right-side menu
            $menu_args = apply_filters( 'tc_menu_args',
                        array(
                          'theme_location'  => 'secondary-menu',
                          'menu_class'      => ( 'hover' == esc_attr( tc__f( '__get_option' , 'tc_menu_type' ) ) ) ? 'nav tc-hover-menu' : 'nav',
                          'fallback_cb'     => array( $this , 'tc_link_to_menu_editor' ),
                          'walker'          => TC_nav_walker::$instance,
                          'echo'            => false,
                      )
            );
            $menu_wrapper_class   = ( 'hover' == esc_attr( tc__f( '__get_option' , 'tc_menu_type' ) ) ) ? 'nav-collapse collapse tc-hover-menu-wrapper' : 'nav-collapse collapse';
            printf('<div class="%1$s">%2$s</div>',
                apply_filters( 'menu_wrapper_class', $menu_wrapper_class ),
                wp_nav_menu( $menu_args )
            );
    
            $html = ob_get_contents();
            if ($html) ob_end_clean();
            echo apply_filters( 'tc_menu_display', $html, $resp );
    Thread Starter hesselhaker

    (@hesselhaker)

    Hi Tobias,

    Thank you for your prompt answer! Great – though not very comforting that even the Master himself doesn’t know. Will check the threads – please keep me posted if you get any bright ideas.

    Will see what http://validator.w3.org says about this. Thanks again!

    Forum: Fixing WordPress
    In reply to: Crash after hack
    Thread Starter hesselhaker

    (@hesselhaker)

    Hi Esmi,
    now I talked to one.com and they told me there was something wrong with the script that overruled the session. He couldn’t tell me whether it was in the theme or wordpress.

    Anyway, the bug is still there, but for the time being I have managed to work around it and the site is up. So thanks again for your help.
    Regards,
    Hessel

    Forum: Fixing WordPress
    In reply to: Crash after hack
    Thread Starter hesselhaker

    (@hesselhaker)

    Hi Esmi,

    Thanks for these good tips! Yes, I did install to the same directory and have not changed the site urls (had a good couple of hours fun trying that the other day…)

    I changed the theme and then everything works fine as far as I can see. So I backed up what was hacked and did an overwrite on the creativix theme, but the same problems are still there. So can it be the theme then? Checked plugins, but makes no difference.

    I really don’t know what to try next, so I’ll start skimming through the links you posted.

    Forum: Fixing WordPress
    In reply to: Crash after hack
    Thread Starter hesselhaker

    (@hesselhaker)

    Hi Esmi,

    That was kind of you to reply! I will/am checking out these things. What I have now done is:
    -New passwords
    -Manual install newest WP (as the automatic one crashed before it began)
    -Uploaded backup to new wordpress directory.

    I then tried to link to this new directory in the General settings, but I get into this login screen again and WP redirects me back to general settings without saving.

    When editing something smaller in general settings, for example a timezone box and storing it, I also get into the login screen, but make it through it with the changes made.

    Is there something wrong with WP or is it my theme or my computer?!
    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)