using theme check plugin to remove waring and errors from my theme
using theme check plugin to remove waring and errors from my theme
using theme check plugin to remove waring and errors from my theme
First: You probably did some settings wrong with the slider or the slider is messed up because your pictures get totally skewed by it. About your Problems: 1.: auto is not a valid value for the HTML Attribute “height” for images. Remove it completely from the image tags, and it will be sized “auto”. So, … Read more
In your sidebar array as an example: register_sidebar(array( ‘id’ => ‘footer’, ‘name’ => ‘Footer’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget col-sm-4 %2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4 class=”widgettitle”>’, ‘after_title’ => ‘</h4>’, )); Don’t worry about wrapping the sidebar in a row. Let this do it for you. See, the col-sm-4 (or whatever size, with 4) … Read more
WordPress allows the addition of extra nav menus. Add this to your child themes functions file: register_nav_menus( array( ‘secondary_menu’ => ‘My Second Menu’ ) ); Add this to your header.php file or the file where you want to display your extra nav menu. <nav id=”site-navigation” class=”main-navigation” role=”navigation”> <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’, ‘menu_class’ => … Read more
I think similar question is answered here: Send user activation email when programmatically creating user Please have a look. Let me know if that solves the issue.
You should call the_post only inside the loop, or call rewind_posts() before actually starting the loop. sidenote: you are doing it totally wrong. don’t reinvent the wheel, look in the codex how to write a theme or use one of the bundled default themes as a base to your theme. No sane person starts to … Read more
This is wrong <?php if ( have_posts() ) { while ( have_posts() ) { if ( has_post_thumbnail() ) { echo “<div id=’post_thumbnail’>”; the_post_thumbnail(); echo ‘<h4>’ . get_post(get_post_thumbnail_id())->post_excerpt . ‘</h4>’; echo “</div>”; } the_post(); You are calling your thumbnail before the_post(). Just move the_post() to before if ( has_post_thumbnail() ) {
404 errors are handled browser site and has nothing to do with WordPress. When nothing is returned from the request, the browser triggers a 404 action and displays a 404 not found error page By default, if no custom 404 page exists on the site, the browser will display its own default 404 page. For … Read more
Never change content without the user’s specific manual request, and never ever delete anything from the DB that you haven’t created. So the only question left is how to create you sample content. The cleanest way is to provide an exported sample that can be imported into WP. The only problem with this approach is … Read more
I got the solution for this question. I need to apply there Isotope append method, when adding posts to the frontend. Here is the Isotope append method.