• I wanna remove the search box in the menu/header section. I searched the net and found multiple codes to work this out, but the codes didnt look like mine, and so i dont know what to do/delete/add. One of them is to delete the “get_search_form””, i tried, but it didnt work.

    Can somebody help me out? My URL is https://www.stijnspreekt.nl

    Another thing. I also wanna display the menu button(tree horizontal stripes) in every article/post on mobile. Its only displaying on the main page now. Or is that a normal thing?

    And the last thing, i also struggle with removing the default “author box” underneath every post. I wanna install a author box plugin, so i wanna remove the default.

    Who is gonna play the Wizard of Oz for me? ?? Thank you so much!

    Stijn

    • This topic was modified 8 years, 3 months ago by ClaitonLord.
Viewing 10 replies - 16 through 25 (of 25 total)
  • Well it was fine before you added my code, but with my code removed it is still broken, so an error has happened somewhere within the code changes you have made, other then the one’s I’ve given you.

    The code above in this thread is merely to hide a couple of elements, with these elements visible again the sidebar is still located below your content.

    Usually this is caused by an additional/missing </div> somewhere within a file (index.php, home.php), but I really don’t know what other changes you have made.

    Thread Starter ClaitonLord

    (@claitonlord)

    Fixed! I screwed up the original style.css this afternoon.

    So Sumo, I wanna remove the entire meta tag author box thing. After that i wanna have the meta tags with the date of posts ect on top, between the social share button and the main image. How can i do that?

    Thread Starter ClaitonLord

    (@claitonlord)

    Sumo, or somebody, can you also help me out with my above question? Would be great. Thanks!

    • This reply was modified 8 years, 3 months ago by ClaitonLord.

    Please don’t bump threads as they may be closed to replies by a moderator.

    You can create a copy of single.php and palce it in your Child Theme folder, from here you can modify the file to suit your needs.

    The post meta code begins with <div class="post-meta"> and ends at </div> <!-- /post-meta -->, move this code block so it is directly above <div class="post-content">, which is just a little further up the file.

    Once you have done this, you can adjust the styling of the post meta area by adding this to your CSS.

    .single .post-meta {
        float: none;
        width: 100%;
        padding: 10% 10% 0;
    }

    Hope this helps.

    Thread Starter ClaitonLord

    (@claitonlord)

    Ow im sorry. Nice!It worked out Sumo!

    I wanna delete edit post, next post and previous post. Which pieces of code could should i delete? I see them, but i dont know exactly where it starts and ends. I see this:

    <div class=”post-meta”>

    <p class=”post-date”><?php the_time( get_option( ‘date_format’ ) ); ?></p>

    <?php if( function_exists(‘zilla_likes’) ) zilla_likes(); ?>

    <p class=”post-categories”><?php the_category(‘, ‘); ?></p>

    <?php if (has_tag()) : ?>

    <p class=”post-tags”><?php the_tags(”, ‘, ‘); ?></p>

    <?php endif; ?>

    <div class=”clear”></div>

    <div class=”post-nav”>

    <?php
    $prev_post = get_previous_post();
    if (!empty( $prev_post )): ?>

    ” href=”<?php echo get_permalink( $prev_post->ID ); ?>”><?php _e(‘Previous post’, ‘baskerville’); ?>

    <?php endif; ?>

    <?php
    $next_post = get_next_post();
    if (!empty( $next_post )): ?>

    ” href=”<?php echo get_permalink( $next_post->ID ); ?>”><?php _e(‘Next post’, ‘baskerville’); ?>

    <?php endif; ?>

    <?php edit_post_link( __(‘Edit post’, ‘baskerville’)); ?>

    <div class=”clear”></div>

    </div>

    </div> <!– /post-meta –>

    Also , on my mobile, i still see the blue box around it. How do i make it just like i see on my desktop?

    • This reply was modified 8 years, 3 months ago by ClaitonLord.

    @claitonlord: Have you ever considered hiring a webdesigner for the customizations on your website? Please keep in mind that the people in these forums here all are volunteers who offer help for free if time allows.

    But that doesn’t mean that you can get a coder here who will customize your website for free. If you’re not familiar with coding, then it would be a good start to check some online tutorials about basic CSS/HTML in order to improve your skills or hire a freelancer (e.g. at Codeable) for your customization requests, rather than having a lot of back and forth to achieve what you have in mind.

    • This reply was modified 8 years, 3 months ago by Michael.
    Thread Starter ClaitonLord

    (@claitonlord)

    You right MH. I was just thinking about that also. I like it though.

    For now, its just the meta post tags, thats it. I hope Sumo can help me with this last two little things, than im good. Thank you.

    Thread Starter ClaitonLord

    (@claitonlord)

    @sumo, i fixed it myself with trial and error! The only thing i need to know is how do i delete the blue box around the post meta tag on mobile? Desktop is fine.

    You can use this code to remove the background color at mobile widths:

    @media only screen and (max-width: 700px) {
        .single .post-meta { 
            background: none;
        }
    }

    Hope this helps.

    Thread Starter ClaitonLord

    (@claitonlord)

    Yes that did it! Thanks Sumo!

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Remove search box from header in WordPress theme’ is closed to new replies.