Forum Replies Created

Viewing 15 replies - 1 through 15 (of 53 total)
  • Thread Starter adlawrence

    (@adlawrence)

    I’m glad my post helped. I’m not sure what to do about the search box. I suggest starting a new thread so it will catch someone’s attention. Unfortunately, posting to old threads are less likely to get responds from the WordPress mods.

    Thread Starter adlawrence

    (@adlawrence)

    Thanks, DivByZRo! Here’s the updated code in my CSS that fixed it and centered the footer:

    `/** Upper footer */
    .site-footer .sidebar-container {
    background-color: #fff;
    padding: 0;
    }

    .site-footer .widget-area {
    margin: 0 auto;
    max-width: 1040px;
    width: 100%;
    }

    .sidebar .site-footer .widget-area {
    /*
    max-width: 724px;
    position: relative;
    left: -158px;
    */
    }

    .site-footer .widget {
    background: transparent;
    color: #002566;
    float: left;
    margin-right: 20px;
    width: 245px;
    }

    .sidebar .site-footer .widget {
    padding: 0;
    margin: 0;
    width: 100%;
    }`

    Thread Starter adlawrence

    (@adlawrence)

    Victory! Thanks, DivByZRo.

    Any ideas on where to plugin text-align: center so I can center the darn footer? Plus there’s the whacky amount of white space above and below it.

    Thread Starter adlawrence

    (@adlawrence)

    Ah-ha! I figured it out. For anyone else, here’s the code in my child theme that I changed (clearly, in the theme’s CSS):

    /* Buttons */
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"] {
    	background: #5DC2A5; /* Old browsers */
    	background: -webkit-linear-gradient(top, #5DC2A5 0%, #3a997e 100%); /* Chrome 10+, Safari 5.1+ */
    	background:   linear-gradient(to bottom, #5DC2A5 0%, #3a997e 100%); /* W3C */
    	border: none;
    	border-bottom: 3px solid #3a997e;
    	border-radius: 2px;
    	color: #fff;
    	display: inline-block;
    	padding: 11px 24px 10px;
    	text-decoration: none;
    }
    
    button:hover,
    button:focus,
    input[type="submit"]:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    input[type="submit"]:focus,
    input[type="button"]:focus,
    input[type="reset"]:focus {
    	background: #5DC2A5; /* Old browsers */
    	background: -webkit-linear-gradient(top, #5DC2A5 0%, #3a997e 100%); /* Chrome 10+, Safari 5.1+ */
    	background:   linear-gradient(to bottom, #5DC2A5 0%, #3a997e 100%); /* W3C */
    	outline: none;
    }
    
    button:active,
    input[type="submit"]:active,
    input[type="button"]:active,
    input[type="reset"]:active {
    	background: #5DC2A5; /* Old browsers */
    	background: -webkit-linear-gradient(top, #5DC2A5 0%, #3a997e 100%); /* Chrome 10+, Safari 5.1+ */
    	background:   linear-gradient(to bottom, #5DC2A5 0%, #3a997e 100%); /* W3C */
    	border: none;
    	border-top: 3px solid #3a997e;
    	padding: 10px 24px 11px;

    I changed all of the hex color codes.

    Thread Starter adlawrence

    (@adlawrence)

    Yes, thanks Andrew. I am looking to make the changes in my child CSS (which I linked to in my first post).

    The screenshot doesn’t seem to help because it’s not code in the CSS and it doesn’t control the look of the Send button. It does however, show where the loading image is stored (arrows going round and round).

    Any ideas on how to replace/change the send button?

    Thread Starter adlawrence

    (@adlawrence)

    Victory! Thanks for the help, WPyogi and graphical_force. I really appreciate it. Next time, I’ll try restarting my FTP first.

    *sigh*

    Thread Starter adlawrence

    (@adlawrence)

    Hmm … and each time I FTP the file, it doesn’t seem to note the changes. I’ll restart my file transfer program.

    Thread Starter adlawrence

    (@adlawrence)

    WPyogi, thanks for reminding me and not to worry: All of my changes are going directly into my child theme.

    I added that new coding following .nav-menu { and there doesn’t seem to be a change.

    Any ideas?

    Thread Starter adlawrence

    (@adlawrence)

    Thanks, graphical_force. I’m glad to know that someone else thought that was the right spot. But it isn’t working. Any other ideas?

    Scott, thanks for your help.

    I get that I need the consumer key, secret and access token (and create them on Twitter), however where do I plug in the access token with this plugin?

    I’m using this too, and it’s great, but I don’t see how to get the search box to float in the same line as the other menu items. In my case, it breaks to a second line. did you do anything in CSS to make it work?

    Dylan, if you are asking me: I didn’t touch my CSS file. Good luck!

    Thread Starter adlawrence

    (@adlawrence)

    For anyone wondering, the solution couldn’t be simpler. Here are directions (found by steveshead and discussed in this thread):

    1. Create a new php file in your child theme called functions.php. Here’s all of the code you’ll need:

    <?php
    /**
     * Twenty Twelve Child functions additions.
     */
    
    /**
     * Add a search bar to the navigation menu.
     *
     * @since Twenty Twelve 1.0
     */
    function menu_search($items){
        $search = '<li class="search">';
        $search .= '<form method="get" id="searchform" action="/">';
        $search .= '<label for="s" class="assistive-text">Search</label>';
        $search .= '<input type="text" class="field" name="s" id="s" placeholder="Search" />';
        $search .= '<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" />';
        $search .= '</form>';
        $search .= '</li>';
    
        return $items . $search;
    }
    add_filter('wp_nav_menu_items','menu_search');

    2. Upload said file into your child theme.

    3. Disable the default navbar/menu. To do so, go to: Admin/Appearance/Menu and create a new navbar/menu. Once the new one is created, make it the primary menu by clicking on the drop down menu in the “Theme Locations” box on the same page. Add the links you’d like included in the menu and save.

    4. Voila. Check your website to make sure everything works.

    You are f-ing awesome. Thanks, steveshead. You not only helped me solve this problem, but another I’ve been wondering how to fix. That’s the fastest navbar I’ve ever made. Thanks again!

    P.S. My website is: http://reddoorreview.com

    Default menu.

    Steveshead, thanks for posting the php. Instead of pasting the code into the parent theme’s functions.php file, I created a new one for my child theme and pasted it into there. However, it isn’t working. I’m not sure if it’s because the code doesn’t work on my site or if I missed something when I created the PHP file. Here’s all of the code in that one file:

    <?php
    /**
     * Twenty Twelve Child functions and definitions, added for RedDoorReview.com.
     */
    
    /**
     * Add a search bar to the navigation menu.
     *
     * @since Twenty Twelve 1.0
     */
    function menu_search($items){
        $search = '<li class="search">';
        $search .= '<form method="get" id="searchform" action="/">';
        $search .= '<label for="s" class="assistive-text">Search</label>';
        $search .= '<input type="text" class="field" name="s" id="s" placeholder="Search" />';
        $search .= '<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" />';
        $search .= '</form>';
        $search .= '</li>';
    
        return $items . $search;
    }
    add_filter('wp_nav_menu_items','menu_search');

    [Signature moderated]

Viewing 15 replies - 1 through 15 (of 53 total)