Title: DevDm's Replies - page 2 | WordPress.org

---

# DevDm

  [  ](https://wordpress.org/support/users/devdm/)

 *   [Profile](https://wordpress.org/support/users/devdm/)
 *   [Topics Started](https://wordpress.org/support/users/devdm/topics/)
 *   [Replies Created](https://wordpress.org/support/users/devdm/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/devdm/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/devdm/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/devdm/engagements/)
 *   [Favorites](https://wordpress.org/support/users/devdm/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 16 through 30 (of 68 total)

[←](https://wordpress.org/support/users/devdm/replies/?output_format=md) [1](https://wordpress.org/support/users/devdm/replies/?output_format=md)
2 [3](https://wordpress.org/support/users/devdm/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/devdm/replies/page/4/?output_format=md) 
[5](https://wordpress.org/support/users/devdm/replies/page/5/?output_format=md) 
[→](https://wordpress.org/support/users/devdm/replies/page/3/?output_format=md)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Author page not showing any post of that other](https://wordpress.org/support/topic/author-page-not-showing-any-post-of-that-other/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/author-page-not-showing-any-post-of-that-other/#post-7229440)
 * Hey Pramod,
 * You can simply duplicate index.php, rename it to author.php or one of the other
   naming conventions specified in the codex. Put this author.php in a your child
   theme and it will be authoritative.
 * [https://codex.wordpress.org/Author_Templates](https://codex.wordpress.org/Author_Templates)
 * Here is an example of what author.php could look like. In this example I’ve removed
   the block of code that handles searches and replaced it with the “Written by…”
   stuff.
 * **author.php**
 *     ```
       <?php get_header(); ?>
   
       <?php get_template_part('template-part', 'head'); ?>
   
       <?php get_template_part('template-part', 'topnav'); ?>
   
       <!-- start content container -->
       <div class="row dmbs-content">
   
           <?php //left sidebar ?>
           <?php get_sidebar( 'left' ); ?>
   
           <div class="col-md-<?php devdmbootstrap3_main_content_width(); ?> dmbs-main">
   
               <h2>Written by: <?php the_author_posts_link(); ?></h2>
   
               <?php // theloop
               if ( have_posts() ) : while ( have_posts() ) : the_post();
   
                   // single post
                   if ( is_single() ) : ?>
   
                       <div <?php post_class(); ?>>
   
                           <h2 class="page-header"><?php the_title() ;?></h2>
   
                           <?php if ( has_post_thumbnail() ) : ?>
                               <?php the_post_thumbnail(); ?>
                               <div class="clear"></div>
                           <?php endif; ?>
                           <?php the_content(); ?>
                           <?php wp_link_pages(); ?>
                           <?php get_template_part('template-part', 'postmeta'); ?>
                           <?php comments_template(); ?>
   
                       </div>
                       <?php
                   // list of posts
                   else : ?>
                       <div <?php post_class(); ?>>
   
                           <h2 class="page-header">
                               <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'devdmbootstrap3' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
                           </h2>
   
                           <?php if ( has_post_thumbnail() ) : ?>
                               <?php the_post_thumbnail(); ?>
                               <div class="clear"></div>
                           <?php endif; ?>
                           <?php the_content(); ?>
                           <?php wp_link_pages(); ?>
                           <?php get_template_part('template-part', 'postmeta'); ?>
                           <?php  if ( comments_open() ) : ?>
                               <div class="clear"></div>
                               <p class="text-right">
                                   <a class="btn btn-success" href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Leave a Comment','devdmbootstrap3'), __('One Comment','devdmbootstrap3'), '%' . __(' Comments','devdmbootstrap3') );?> <span class="glyphicon glyphicon-comment"></span></a>
                               </p>
                           <?php endif; ?>
                       </div>
   
                   <?php  endif; ?>
   
               <?php endwhile; ?>
                   <?php posts_nav_link(); ?>
               <?php else: ?>
   
                   <?php get_404_template(); ?>
   
               <?php endif; ?>
   
           </div>
   
           <?php //get the right sidebar ?>
           <?php get_sidebar( 'right' ); ?>
   
       </div>
       <!-- end content container -->
   
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Feature request – add_theme_support html5](https://wordpress.org/support/topic/feature-request-add_theme_support-html5-1/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/feature-request-add_theme_support-html5-1/#post-7103842)
 * Yes, qvarting.
 * I’ve just been a lazy bones in getting this updated. I will submit an update 
   in the next week or I’ll eat a jar of old pickles!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] getting Notice in debug mode](https://wordpress.org/support/topic/getting-notice-in-debug-mode/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-notice-in-debug-mode/#post-7047547)
 * Hey Newbee,
 * This was answered here. We are working on pushing out an update to fix this soon.
   It has been a problem for FAR too long!
 * [https://wordpress.org/support/topic/constructor-method-error?replies=2](https://wordpress.org/support/topic/constructor-method-error?replies=2)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Changing navwalker.php in child theme](https://wordpress.org/support/topic/changing-navwalkerphp-in-child-theme/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/changing-navwalkerphp-in-child-theme/#post-7022850)
 * Yes betyonfire,
 * You can dose these nav flames by duplicating template-part-topnav.php or template-
   part-footernav.php into your child theme and modifying wp_nav_menu to your custom
   nav walker.
 * The WordPress child theme system doesn’t just look for any old file when it comes
   to the hierarchy in child themes. Only WordPress specific template files.
 * So this inside template-part-topnav.php…
 *     ```
       <?php
                       wp_nav_menu( array(
                               'theme_location'    => 'main_menu',
                               'depth'             => 2,
                               'container'         => 'div',
                               'container_class'   => 'collapse navbar-collapse navbar-1-collapse',
                               'menu_class'        => 'nav navbar-nav',
                               'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
                               'walker'            => new wp_bootstrap_navwalker())
                       );
                       ?>
       ```
   
 * Turns into this (where we change ‘walker’ to your custom one which you need to
   include in your child theme’s functions.php file).
 *     ```
       <?php
                       wp_nav_menu( array(
                               'theme_location'    => 'main_menu',
                               'depth'             => 2,
                               'container'         => 'div',
                               'container_class'   => 'collapse navbar-collapse navbar-1-collapse',
                               'menu_class'        => 'nav navbar-nav',
                               'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
                               'walker'            => new wp_betysflaminhot_navwalker())
                       );
                       ?>
       ```
   
 * hope this helps. 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Where/when is $dm_settings['left_sidebar'] updated?](https://wordpress.org/support/topic/wherewhen-is-dm_settingsleft_sidebar-updated/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wherewhen-is-dm_settingsleft_sidebar-updated/#post-6966296)
 * Hey kmfischer,
 * The main display area column size is set inside the functions.php file using 
   this function:
 * function devdmbootstrap3_main_content_width_columns
 * This function looks at settings array to see if the $dm_settings[‘right_sidebar’]
   and $dm_settings[‘left_sidebar’] are set.
 * If they are it looks for $dm_settings[‘right_sidebar_width’] and $dm_settings[‘
   left_sidebar_width’] respectively and calculates the main column size with these
   widths subtracted from 12 (the default Bootstrap 3 grid size) returning the main
   column width.
 * Anywhere the main column is used in a template file it opens with this div tag
   to grab the main width.
 * `<div class="col-md-<?php devdmbootstrap3_main_content_width(); ?> dmbs-main"
   >`
 * Each of the left and right sidebars (ex. sidebar-left.php) has logic to see if
   they are even toggled before returning their set width from the $dm_settings 
   global array of options
 *     ```
       <?php
           global $dm_settings;
           if ($dm_settings['left_sidebar'] != 0) : ?>
           <div class="col-md-<?php echo $dm_settings['left_sidebar_width']; ?> dmbs-left">
               <?php dynamic_sidebar( 'Left Sidebar' ); ?>
           </div>
       <?php endif; ?>
       ```
   
 * What we have in essence is a system that only bothers with the left and right
   sidebar width if they are toggled and the function devdmbootstrap3_main_content_width_columns
   follows this same logic to return the correct main column width value.
 * Hopefully this helps you a bit. If not we can dig deeper and I’ll need some links
   to see the behavior. You can email me [danny@devdm.com](https://wordpress.org/support/users/devdm/replies/page/2/danny@devdm.com?output_format=md)
   for help.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Ordering Post in Home](https://wordpress.org/support/topic/ordering-post-in-home/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/ordering-post-in-home/#post-6934709)
 * Hey Luckebar,
 * We are not modifying the default behavior of the returned posts array. You said
   the word “Home” which makes me wonder if you are using your own custom template
   page for home which might have an error in it?
 * Can you post the code for your loop so I can see what you are working with?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] constructor method error](https://wordpress.org/support/topic/constructor-method-error/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/constructor-method-error/#post-6755676)
 * Thanks for this. I would try to push out an update to correct it but I fear they
   are going to reject it with the “must use customizer” policy that is going into
   effect. But I’ll try. 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Left sidebar is showing on the top of the content in portrait and mobile view](https://wordpress.org/support/topic/left-sidebar-is-showing-on-the-top-of-the-content-in-portrait-and-mobile-view/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/left-sidebar-is-showing-on-the-top-of-the-content-in-portrait-and-mobile-view/#post-5028918)
 * Hey Retrokevin,
 * I did some messing around and came up with this. Keep in mind I’m not a JS wizard.
 * You’ll need to create some files in your child theme (if you don’t have them 
   already) to follow along here.
 * functions.php
    /js/reorder-sidebars-mobile.js
 * In your functions.php you want to enqueue the script
 *     ```
       <?php
   
       /**
        * Proper way to enqueue scripts and styles Child Theme
        */
   
       function devdmbootstrap3_child_theme_scripts() {
           wp_enqueue_script( 'reorder-sidebars-mobile', get_stylesheet_directory_uri() . '/js/reorder-sidebars-mobile.js', array(), '1.0.0', true );
       }
   
       add_action( 'wp_enqueue_scripts', 'devdmbootstrap3_child_theme_scripts' );
       ```
   
 * In your reorder-sidebars-mobile.js file you can use this code
 *     ```
       jQuery(document).ready(function( $ ) {
   
           var mobilewidth = "767";
   
           if ($(window).width() < mobilewidth) {
               $('.dmbs-left').insertBefore('.dmbs-right');
           }
   
           $( window ).resize(function() {
               if ($(this).width() < mobilewidth) {
                   $('.dmbs-left').insertBefore('.dmbs-right');
               } else {
                   $('.dmbs-left').insertBefore('.dmbs-main');
               }
           });
   
       });
       ```
   
 * The first function sets the “order” when the window is loaded. Moves the left
   column on top of the right column if mobilewidth threshold is hit.
 * The re-size function will ping every time the window is re-sized. I “think” this
   is triggered with a screen rotation so we are doubling up to cover all our bases.
   It will also put the left sidebar back when the threshold is detected as no longer
   hit.
 * Hope this helps!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] SINGLE POST](https://wordpress.org/support/topic/single-post-5/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/single-post-5/#post-5839863)
 * Oh good 🙂 It is always nice when it is an easy one. Good luck!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] SINGLE POST](https://wordpress.org/support/topic/single-post-5/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/single-post-5/#post-5839794)
 * Sure Goldy. What is your problem?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] H1 tags for better SEO – Feature Request](https://wordpress.org/support/topic/h1-tags-for-better-seo-feature-request/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/h1-tags-for-better-seo-feature-request/#post-5565814)
 * Thanks for the feedback prunly. 🙂
 * I think you may be right here. I’ll keep it on my list to research for future
   releases!
 * Have a good holiday season!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] 3rd Level Menu Items](https://wordpress.org/support/topic/3rd-level-menu-items-1/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/3rd-level-menu-items-1/#post-5398041)
 * The Navwalker class we are using doesn’t support more than one level at this 
   time. You might try to find a menu plugin to handle this instead. 🙂
 * [https://github.com/twittem/wp-bootstrap-navwalker](https://github.com/twittem/wp-bootstrap-navwalker)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Undeclared variables when compiling LESS](https://wordpress.org/support/topic/undeclared-variables-when-compiling-less/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/undeclared-variables-when-compiling-less/#post-5324860)
 * I don’t think it is that common really when everything is implemented properly.
 * I’d like to help you figure out what you are doing wrong to save you pain in 
   the future and not have to ignore errors. 🙂
 * Let me know if you want to peruse it further. I’ll be available.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Undeclared variables when compiling LESS](https://wordpress.org/support/topic/undeclared-variables-when-compiling-less/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/undeclared-variables-when-compiling-less/#post-5324857)
 * David maybe you should zip your entire LESS directory and send it to me.
 * [danny@devdm.com](https://wordpress.org/support/users/devdm/replies/page/2/danny@devdm.com?output_format=md)
 * I think maybe you are trying to do something and not making the right connections
   with what to compile and where.
 * You can always just edit the style.css file of your child theme to add any CSS.
   You do not have to compile any of the LESS if you don’t want to.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[DevDmBootstrap3] Adding drop-downs to Options](https://wordpress.org/support/topic/tab-dropdowns-cannot-be-clicked-1/)
 *  Theme Author [DevDm](https://wordpress.org/support/users/devdm/)
 * (@devdm)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/tab-dropdowns-cannot-be-clicked-1/#post-5300493)
 * If you still can’t figure it out email me and I’ll send you a copy of an edited
   theme-options.php.
 * [danny@devdm.com](https://wordpress.org/support/users/devdm/replies/page/2/danny@devdm.com?output_format=md)

Viewing 15 replies - 16 through 30 (of 68 total)

[←](https://wordpress.org/support/users/devdm/replies/?output_format=md) [1](https://wordpress.org/support/users/devdm/replies/?output_format=md)
2 [3](https://wordpress.org/support/users/devdm/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/devdm/replies/page/4/?output_format=md) 
[5](https://wordpress.org/support/users/devdm/replies/page/5/?output_format=md) 
[→](https://wordpress.org/support/users/devdm/replies/page/3/?output_format=md)