bdbrown on "[Theme: Hueman] No sidebars on mobile version"

ساخت وبلاگ

The default theme configuration does not have that option for phone screens. However, with a little work, you can implement it:

1. Copy responsive.css from the parent theme to your child theme.

2. Find this section:

/* ------------------------------------------------------------------------- * * Toggle Sidebar s2 : 1200px > 480px
/* ------------------------------------------------------------------------- */
@media only screen and (min-width: 480px) and (max-width: 1200px) {

3. Change the @media line to this:

@media only screen and (min-width: 0px) and (max-width: 1200px) {

4. Find this section:

/* ------------------------------------------------------------------------- * * Toggle Sidebar s1 : 960px > 480px
/* ------------------------------------------------------------------------- */
@media only screen and (min-width: 480px) and (max-width: 960px) {

5. Change the @media line to this:

@media only screen and (min-width: 0px) and (max-width: 960px) {

6. Find this section near the bottom:

/* ------------------------------------------------------------------------- * * Mobile (Low Res) : 479px > 0 (320px)
/* ------------------------------------------------------------------------- */
@media only screen and (max-width: 479px) {

7. Delete the entire section.

8. Add this function to your child theme functions.php file:

/* load responsive.css from child theme */
function alx_styles() { wp_enqueue_style( 'style', get_stylesheet_uri() ); if ( ot_get_option('responsive') != 'off' ) { wp_enqueue_style( 'responsive', get_stylesheet_directory_uri().'/responsive.css' ); } wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/fonts/font-awesome.min.css' );
}

The downside to this is, if the default theme responsive.css file ever changes, you'll need to copy the new version to your child theme and make the same changes again.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 269 تاريخ : جمعه 1 مرداد 1395 ساعت: 3:52