Search Form Not Working
Ive actually solved this. It appears that there were some errors in the search.php file which resulted in lots of issues. Thanks for your comments.
Ive actually solved this. It appears that there were some errors in the search.php file which resulted in lots of issues. Thanks for your comments.
The unregister_sidebar takes the ID, not the name: <?php unregister_sidebar( $id ); ?> You’ll need to do it like this: <?php function remove_some_widgets(){ unregister_sidebar( ‘sidebar-1’ ); unregister_sidebar( ‘sidebar-2’ ); unregister_sidebar( ‘sidebar-3’ ); } add_action( ‘widgets_init’, ‘remove_some_widgets’, 11 ); ?>
You can use filters in custom functions to modify the default output of the comments form via your child themes functions file. Modify the comment form “Leave a reply” text. add_filter( ‘comment_form_defaults’, ‘wpsites_modify_comment_form_title’ ); function wpsites_modify_comment_form_title( $defaults ) { $defaults[‘title_reply’] = __( ‘Leave a Comment’ ); return $defaults; } Remove The Website URL Field From … Read more
Replace the image code with the below one. Actually you are giving the root path in your image source but the image is in your theme folder. Also check if the images folder name is image or images. <img src=”https://wordpress.stackexchange.com/questions/159297/<?php bloginfo(“template_directory’); ?>/image/logokovil.png” alt=”logo” height=”100″ width=”100″>
There are some confusing information in your question and some important information missing Did you set a static front page as it is suggested in your code Do you need to achieve this on your front page or homepage Why aren’t you using the front-page.php template included if you have set a static front page, … Read more
Good news, I seem to have fixed the code. I cleaned up the code for #colophon. I changed it from this: #colophon { background:url(http://kjel.ca/wp-content/uploads/2014/12/footer-img.jpeg) repeat-x bottom center; height:80%; width:100%; position:absolute; margin:0; padding:0; bottom:0; min-width:100%; min-height:1%; } To this: #colophon { background: url(“http://kjel.ca/wp-content/uploads/2014/12/footer-img-2.jpeg”) repeat-x scroll center bottom transparent; height: 100%; position: absolute; width: 100%; background-size: 100% … Read more
Base on @Tunji answer. You can add some conditions to the function to detect home-page, feeds… function display_extra_title( $title, $id = null ) { $date = the_date(”, ”, ”, false); if(is_home()){ $title = get_bloginfo( ‘name’ ); return $date . $title; } else{ return $date . $title; } } add_filter( ‘the_title’, ‘display_extra_title’, 10, 2 ); In … Read more
I figured it out. It is the inherit default layout settings. First turn that off and then enter the desired width.
This is the intended behaviour on an iPhone or other mobile device (it’s called ‘responsive design’). Because you have a much narrower screen on a mobile it’s very likely that if you have more than four or five top-level pages, the navigation menu starts to wrap on to two lines and become messy & difficult … Read more
The code in question is in header.php, line 45. <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’ ) ); ?> This is the Codex reference to this function: wp_nav_menu. From my experience, and some googling, this previous answer has the answer you’re looking for. If possible, would just adding a class to the sub-menus … Read more