Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • To GMCF,
    In the style.css for your child theme, look for:

    .widget-area .widget p {
    	margin-bottom: 24px;
    	margin-bottom: 1.714285714rem;
    }

    and reduce the 24px margin to whatever you want. If you are not familiar with how to get the corresponding rem value….. just Google Search for a px to rem convertor.

    I am also trying to add a widget area to the header. I want it to go just above the search box. But am having problems!

    So far I have…..
    (1) registered the widget by adding the following to the functions.php in my child theme:

    <!-- adding phone number above search box - This will register the widget area-->
    	<?php
        register_sidebar( array(
            'name' => __( 'Header Widget', 'twentyeleven-child' ),
            'id' => 'header-widget',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => "</div>",
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
        ) );
        ?>

    (2) Added the following to header.php in my child theme:

    <!-- adding widget to hold phone number above search box-->
                <div><?php techild_header_widget(); ?></div>

    just above the following lines that were already there:

    <div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
    				<?php get_search_form(); ?>
    				</div>

    (3)Added some style in the css file of the child theme:

    /* for phone number in header widget */
    header#branding .widget{
        position: absolute;
        top: 2em;
        rightright: 7.6%;
    	color: #c02336; font-size: 18px;
        }

    (4) In the admin panel, I can see the header widget area now listed in the widget areas. I drug and dropped the “text” widget over and used it to type in the text I wanted to display (which is a phone number).

    But nothing is showing up on the site. (at least I didn’t get any of the dreaded fatal error messages when the page loaded) WHERE DID I GO WRONG?

    Hey tg1…
    I have the same question, and I see on your link that you must have found an answer. Would you mind sharing what you found to do?

    Good question, Olly. Actually on this thread I think we were mostly all wanting to hide the title on the “home” page. The word “home” would not be a key word that one would need to optimize, so it would have no effect on the SEO.

    Thread Starter wildwood

    (@wildwood)

    Thanks Chip… that is a great calendar….. but actually I need one that fits compactly on the sidebar of a wordpress site, so it is viable all the time. The links on the calendar can link (point) to posts in the blog pages that address the various events.

    There are several of these in the install plugins utility search…. but I just don’t know about their compatibility with WordPress 3.1.

    Okay, I just found an amazing solution. I called a programmer friend and he had a solution that WORKS.

    Open the “loop-page.php” file in the theme. In the code that says:

    <?php if ( is_front_page() ) { ?>
    <h2 class="entry-title"><?php the_title(); ?></h2>

    Remove (or comment out):
    <h2 class="entry-title"><?php the_title(); ?></h2>

    BINGO!….. title for the Home page (or entry page) is gone from the page, but remains in the navigation.

    How do I find the page ID numbers?

    Thread Starter wildwood

    (@wildwood)

    I am still really confused.

    (1)Do I need to change the permissions on the “footer.php” file only or on the whole folder it’s in?

    And (2) what exactly should the permission be?

    I can’t believe this has been made so complicated in this version when it worked so well in previous versions!!!!!!!!
    I know I could just pull the file out, edit it and reupload. Done. But I would like for my client who I set the blog up for to be able to use all the features himself.

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