• I am currently looking for code that would help me replace the search box with a phone number. Although I found a thread that spoke on the exact issue, the solution did not work. I have already activated a “child” version of Twenty Eleven template, which is what I have been using to make template adjustments.

    I know I am suppose to write a code that would replace the PHP search box section, and then make adjustment to the font in CSS but I can’t seem to get it to work. Can someone help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do not edit the theme itself. First create a child theme for your changes.

    Thread Starter rsanderst1

    (@rsanderst1)

    Hello Esmi,

    As I stated previously, I have already created a child theme within the adult theme. I am simply looking for code that would allow me to replace the search box with a company phone number. Can you help?

    Thread Starter rsanderst1

    (@rsanderst1)

    This is the code for the search box. But, I am unsure what to replace it with.

    `<?php
    // Has the text been hidden?
    if ( ‘blank’ == get_header_textcolor() ) :
    ?>
    <div class=”only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>”>
    <?php get_search_form(); ?>
    </div>
    <?php
    else :
    ?>
    <?php get_search_form(); ?>
    <?php endif; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to replace the search box with a phone number in Twenty Eleven’ is closed to new replies.