Widgetized Child Theme (with CSS Sprite Icons)
  • Hello Everybody,

    You might know my widget contributions

    1. Header Widget - Archived
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download the zip file.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich

    Updated: 28.06.2012
    made changes to footer to include new social icons and copied improvements from parent theme.
    updated css sprites for new social icons and updated icons.png.
    updated header with a improvement from parent theme.
    Updated: 02.07.2012 - updated footer.php as the parent theme options update with yelp
    Update: 06.07.2012 - add print css to style and updated footer.php to be compatable with 1.6.9.
    Update 26.09.2012 Included the two new widgets from default theme.
  • You're the best this will be nice.

    Emil
    grappler wrote:
    Hello Everybody,

    You might know my widget contributions

    1. Header Widget
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download them from the post.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich
  • I applied:

    http://themeid.com/forum/post/4985/#p4985

    Replaced
    echo $options['featured_content'];
    
    with
    echo do_shortcode($options['featured_content']);
    
    in sidebar-home-featured-content.php

    I think it broke the Call to Action Button feature since I can no longer disable it.
  • Correction.

    Call to Action has a bug in the child theme. I reinstalled a clean copy. Call to Action cannot be disabled with the child theme activated.
  • Thank you, I seem to have used an old file. I have updated it now.

    Thanks

    Ulrich
    hlanggo wrote:
    Correction.

    Call to Action has a bug in the child theme. I reinstalled a clean copy. Call to Action cannot be disabled with the child theme activated.
  • I uploaded the folder to the "themes" folder. However when I activate the new theme it doesn't show properly. Any hints?

    Thanks! :)
  • Do you have a link? You uploaded it using the WordPress dashboard?

    Ulrich
  • http://fernan.eu

    I uploaded it with an FTP client.

    Thanks for answering!
    grappler wrote:
    Do you have a link? You uploaded it using the WordPress dashboard?

    Ulrich
  • Could you delete it and then upload it via the WordPress dashboard.

    Make sure you save any changes you made with css on your desktop.

    Ulrich

    Fernán wrote:
    http://fernan.eu

    I uploaded it with an FTP client.

    Thanks for answering!
    grappler wrote:
    Do you have a link? You uploaded it using the WordPress dashboard?

    Ulrich
  • Thank you! It works now! :)
    grappler wrote:
    Could you delete it and then upload it via the WordPress dashboard.

    Make sure you save any changes you made with css on your desktop.

    Ulrich

    Fernán wrote:
    http://fernan.eu

    I uploaded it with an FTP client.

    Thanks for answering!
    grappler wrote:
    Do you have a link? You uploaded it using the WordPress dashboard?

    Ulrich
  • Hi All:

    I'm having a similar problem to the one that Fernán had. When I activate the Child Theme I go from Responsive to something similar to the attached. I've tried migrating the files for the child theme through FTP and through the dashboard, but both result in this odd rendering. Any thoughts?
  • Save any css customisation to your desktop.
    Then delete the responsive theme and the child theme.
    Make sure you are using WordPress 3.4.
    Upload the child theme via the dashboard.

    Then everything should work.

    Ulrich
    asmith23 wrote:
    Hi All:

    I'm having a similar problem to the one that Fernán had. When I activate the Child Theme I go from Responsive to something similar to the attached. I've tried migrating the files for the child theme through FTP and through the dashboard, but both result in this odd rendering. Any thoughts?
  • I tried all of that, and I still had a problem - however, I set up a completely new instance of wordpress and installed and that seems to have worked. I'm not sure why, because I hadn't edited the CSS in the first wordpress that I tried the install on, the only thing that I had done was add a plugin. Anyway, I have it up and running now - thanks for all the help.
  • I am pleased it worked out for you. Plugin's do sometimes damage things.

    Ulrich
    asmith23 wrote:
    I tried all of that, and I still had a problem - however, I set up a completely new instance of wordpress and installed and that seems to have worked. I'm not sure why, because I hadn't edited the CSS in the first wordpress that I tried the install on, the only thing that I had done was add a plugin. Anyway, I have it up and running now - thanks for all the help.
  • Wouldn't the child theme have to be updated every time the main theme is updated?

    I only have 3 small changes/edits to the theme. I am considering that perhaps I should just add them to the main theme instead of the child theme.
  • If you add changes to a parent, as soon as you click on the update button everything will be deleted, Child Themes do not need updates, unless there's something major changed in parent, which I would notify the forum anyways.

    You're good with your Child Theme, no worries there.

    Emil
    hlanggo wrote:
    Wouldn't the child theme have to be updated every time the main theme is updated?

    I only have 3 small changes/edits to the theme. I am considering that perhaps I should just add them to the main theme instead of the child theme.
  • That's okay. My changes are very minor (hide post-meta, print clean-up and making Nextgen slideshow work on home). I can just put up a site advisory while I'm putting in those changes.

    Faster than update main theme, check-for/download latest child theme, add changes to child theme.
  • For right now there will be no major changes and/or anything that will affect Child Themes in any way. Once you update Responsive, Child Theme will be updated as well, excluding your personal modifications.

    Thanks for using Responsive!
    Emil
    hlanggo wrote:
    That's okay. My changes are very minor (hide post-meta, print clean-up and making Nextgen slideshow work on home). I can just put up a site advisory while I'm putting in those changes.

    Faster than update main theme, check-for/download latest child theme, add changes to child theme.
  • Hi, I was wondering if anyone has figured out any other ways to fix the error that happens when you upload this child theme.

    I don't know how to create a new instance of wordpress.
  • You don't need to reinstall WordPress.
    Check you are using WordPress 3.4.1 you can see at the bottom right corner.
    First Activate TwentyEleven theme.
    Delete Responsive and Responsive child theme.
    In your case re-download the zip file as I just did a small update.
    Then for to install theme ->upload theme and then click upload.
    Once that is finished activate it.

    Ulrich
    veronikuh wrote:
    Hi, I was wondering if anyone has figured out any other ways to fix the error that happens when you upload this child theme.

    I don't know how to create a new instance of wordpress.
  • grappler wrote:
    You don't need to reinstall WordPress.
    Check you are using WordPress 3.4.1 you can see at the bottom right corner.
    First Activate TwentyEleven theme.
    Delete Responsive and Responsive child theme.
    In your case re-download the zip file as I just did a small update.
    Then for to install theme ->upload theme and then click upload.
    Once that is finished activate it.

    Ulrich
    veronikuh wrote:
    Hi, I was wondering if anyone has figured out any other ways to fix the error that happens when you upload this child theme.

    I don't know how to create a new instance of wordpress.

    Thanks. Should I download the responsive theme first and then the child theme?
  • veronikuh wrote:
    grappler wrote:
    You don't need to reinstall WordPress.
    Check you are using WordPress 3.4.1 you can see at the bottom right corner.
    First Activate TwentyEleven theme.
    Delete Responsive and Responsive child theme.
    In your case re-download the zip file as I just did a small update.
    Then for to install theme ->upload theme and then click upload.
    Once that is finished activate it.

    Ulrich
    veronikuh wrote:
    Hi, I was wondering if anyone has figured out any other ways to fix the error that happens when you upload this child theme.

    I don't know how to create a new instance of wordpress.

    Thanks. Should I download the responsive theme first and then the child theme?

    I ask because this seems like a delicate process where every install has an impact.

    I installed responsive and then I uploaded the updated child theme zip and activated it. I'm still getting the sidebars under the header.
  • Do you have a link?
    veronikuh wrote:

    I ask because this seems like a delicate process where every install has an impact.

    I installed responsive and then I uploaded the updated child theme zip and activated it. I'm still getting the sidebars under the header.
  • Oh that's easy to fix. Just go to the widget options under appearance and remove all the widgets in the header widget.

    Ulrich
    veronikuh wrote:
  • Awesome! Thank you!

    Quick question though; when I extracted the zip file I noticed that the there seems to be a copy of the main folder inside the theme folder. Can I delete the embedded directory? Is one directory better to use than the other?

    I've attached a screen shot for reference.

    Thanks again for the great work,
    Dave
    grappler wrote:
    Hello Everybody,

    You might know my widget contributions

    1. Header Widget
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download the zip file.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich

    Updated: 28.06.2012
    made changes to footer to include new social icons and copied improvements from parent theme.
    updated css sprites for new social icons and updated icons.png.
    updated header with a improvement from parent theme.
    Updated: 02.07.2012 - updated footer.php as the parent theme options update with yelp
  • Yeah thanks. Shoulda been able to figure that one out myself :P

    But dkretz bring up a good point! Heres another screenshot. I'm confused about which files I should be editing.


    dkretz wrote:
    Awesome! Thank you!

    Quick question though; when I extracted the zip file I noticed that the there seems to be a copy of the main folder inside the theme folder. Can I delete the embedded directory? Is one directory better to use than the other?

    I've attached a screen shot for reference.

    Thanks again for the great work,
    Dave
    grappler wrote:
    Hello Everybody,

    You might know my widget contributions

    1. Header Widget
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download the zip file.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich

    Updated: 28.06.2012
    made changes to footer to include new social icons and copied improvements from parent theme.
    updated css sprites for new social icons and updated icons.png.
    updated header with a improvement from parent theme.
    Updated: 02.07.2012 - updated footer.php as the parent theme options update with yelp
  • Sorry about that guys. The second folder shouldn't be in there
    It must have somehow got in when creating the zip file.

    Thank you for mentioning it.

    Ulrich
    veronikuh wrote:
    Yeah thanks. Shoulda been able to figure that one out myself :P

    But dkretz bring up a good point! Heres another screenshot. I'm confused about which files I should be editing.


    dkretz wrote:
    Awesome! Thank you!

    Quick question though; when I extracted the zip file I noticed that the there seems to be a copy of the main folder inside the theme folder. Can I delete the embedded directory? Is one directory better to use than the other?

    I've attached a screen shot for reference.

    Thanks again for the great work,
    Dave
    grappler wrote:
    Hello Everybody,

    You might know my widget contributions

    1. Header Widget
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download the zip file.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich

    Updated: 28.06.2012
    made changes to footer to include new social icons and copied improvements from parent theme.
    updated css sprites for new social icons and updated icons.png.
    updated header with a improvement from parent theme.
    Updated: 02.07.2012 - updated footer.php as the parent theme options update with yelp
  • Thanks Ulrich! I figured that was probably the case. And no need for apologies, you guys provide a fantastic service to the WP community. :)
    grappler wrote:
    Sorry about that guys. The second folder shouldn't be in there
    It must have somehow got in when creating the zip file.

    Thank you for mentioning it.

    Ulrich
    veronikuh wrote:
    Yeah thanks. Shoulda been able to figure that one out myself :P

    But dkretz bring up a good point! Heres another screenshot. I'm confused about which files I should be editing.


    dkretz wrote:
    Awesome! Thank you!

    Quick question though; when I extracted the zip file I noticed that the there seems to be a copy of the main folder inside the theme folder. Can I delete the embedded directory? Is one directory better to use than the other?

    I've attached a screen shot for reference.

    Thanks again for the great work,
    Dave
  • I decided to use the (very simple) child there at http://themeid.com/forum/topic/505/child-theme-example/

    Then, I remove most of the style sheet, leaving just (below) and my two changes to post-meta and media print:
    /*   
    Theme Name: Responsive Child Theme
    Theme URI: http://themeid.com/responsive-theme
    Description: Responsive Child Theme
    Author: Emil Uzelac
    Author URI: http://themeid.com
    Template: responsive
    Version: 1.0
    */
    
    /* Import Responsive Styles */
    @import url('../responsive/style.css');
    
    /* =Start Here
    -------------------------------------------------------------- */
    
    .post-meta {
        display:none;
    }
    
    
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
        h1 {
            page-break-before:always;
        }
    
        h1,  h2,  h3,  h4,  h5,  h6 {
            page-break-after:avoid;
        }
    
        ul,  ol,  dl {
            page-break-before:avoid;
        }
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    /*"The last 29 days of the month are the hardest."- Nikola Tesla*/
    

    Is this okay? Or should I have not removed all the code below?
    /* =Responsive Design
        (Media Queries)
    -------------------------------------------------------------- */
    @media screen and (max-width: 980px) {
    
        body {
        }
    
        .grid, 
        .grid-right {
            float:none;
        }
        
        #featured-image .fluid-width-video-wrapper {
            margin:20px 0 0 0;
        }
    }
    
    @media screen and (max-width: 650px) {
    
        body {
        }
    
        #logo {
            float:none;
            text-align:center;
        }
    
        .grid, 
        .grid-right {
            float:none;
        }
    
        #featured-image .fluid-width-video-wrapper {
            margin:20px 0 0 0;
        }
        
        .js .menu,
        .sub-header-menu {
            display:none;
        }
        
        .top-menu, 
        .footer-menu li {
            float:none;
            text-align:center;
        }
        
        .tinynav { 
            display:block;
            margin:0 auto;
            width:100%;
        }
        
        .tinynav {
            -moz-appearance:none;
            -webkit-appearance:none;
            appearance:none;
            background: #fff url(../../../FTP/Dreamhost/themeid.com/public/responsive-child-theme/images/bg-select.png) no-repeat right;
            border:1px solid #ccc;
            overflow:hidden;
            padding:0.5em 1em 0.5em 0.75em;
        }
        
        .ie7 .tinynav,
        .ie8 .tinynav {
            padding-right:10px;
        }
        
        .ie9 .tinynav  {
            padding-right:8px;
        }
        
        #footer {
            text-align:center;
        }
    
        #footer .social-icons {
            text-align:center;
        }
    }
    
    @media screen and (max-width: 480px) {
    
        body {
        }
    
        #logo {
            float:none;
            position:relative;
            text-align:center;
        }
    
        .grid, 
        .grid-right {
            float:none;
        }
        
        #featured-image .fluid-width-video-wrapper {
            margin:20px 0 0 0;
        }
        
        .featured-title {
            font-size:40px;
            padding:40px 20px 0 20px
        }
        
        .menu ul, 
        .menu li, 
        .top-menu, 
        .footer-menu li, 
        .sub-header-menu li {
            float:none;
            text-align:center;
        }
        
        #footer {
            text-align:center;
        }
    
        #footer .social-icons {
            text-align:center;
        }
    }
    
    @media screen and (max-width: 320px) {
        
        #featured p {
            font-size:12px;
            line-height:1.2em;
        }
    
        .featured-title {
            font-size:35px;
        }
        
        .featured-subtitle {
            font-size:15px;
        }
    
        .call-to-action a.button {
            font-size:14px;
            padding:7px 17px;
        }
    }
    
    @media screen and (max-width: 240px) {
        
        #featured p {
            font-size:11px;
            line-height:1.1em;
        }
    
        .featured-title {
            font-size:20px;
        }
        
        .featured-subtitle {
            font-size:11px;
        }
    
        .call-to-action a.button {
            font-size:12px;
            padding:5px 15px;
        }
    }
    

    Do I put (above) back?
  • Sorry, I didn't realized you had a question. You do need to keep the responsive css in your child theme.

    Ulrich
    hlanggo wrote:
    I decided to use the (very simple) child there at http://themeid.com/forum/topic/505/child-theme-example/

    Then, I remove most of the style sheet, leaving just (below) and my two changes to post-meta and media print:

    Do I put (above) back?
  • grappler wrote:
    Sorry, I didn't realized you had a question. You do need to keep the responsive css in your child theme.

    Ulrich
    hlanggo wrote:
    I decided to use the (very simple) child there at http://themeid.com/forum/topic/505/child-theme-example/

    Then, I remove most of the style sheet, leaving just (below) and my two changes to post-meta and media print:

    Do I put (above) back?

    The (deleted) code can't be read/activated from the parent theme stylesheet?

    I am definitely not an expert but that Wordpress.org documentation made it sound as though code in the child theme stylesheet will just be added to the parent theme stylesheet.

    I only have two changes to the stylesheet - postmeta to be not be displayed and print version to be less cluttered.

    My child theme stylesheet can't contain just these two changes?
  • Sure it can :)

    This part in /your-child-theme/style.css
    /* =Import Responsive Theme Styles
    -------------------------------------------------------------- */
    @import url('../responsive/style.css');
    

    will use all styles from Responsive and when you add e.g.
    .menu {
        background:blue;
    }
    

    it will override only the background from parent Theme. Or more unique to your design:
    .my-cool-style {
        color:blue;
    }
    

    Child Theme can have no changes at all, couple or as many as you need.

    Emil
    hlanggo wrote:
    grappler wrote:
    Sorry, I didn't realized you had a question. You do need to keep the responsive css in your child theme.

    Ulrich
    hlanggo wrote:
    I decided to use the (very simple) child there at http://themeid.com/forum/topic/505/child-theme-example/

    Then, I remove most of the style sheet, leaving just (below) and my two changes to post-meta and media print:

    Do I put (above) back?

    The (deleted) code can't be read/activated from the parent theme stylesheet?

    I am definitely not an expert but that Wordpress.org documentation made it sound as though code in the child theme stylesheet will just be added to the parent theme stylesheet.

    I only have two changes to the stylesheet - postmeta to be not be displayed and print version to be less cluttered.

    My child theme stylesheet can't contain just these two changes?
  • Ugh. I just spotted the Custom CSS Styles section under Theme Options. (Was that always there?)

    I didn't even have to make a child theme. (Boy, do I feel stupid. Yeah, I'm a noob, but missing Custom CSS Styles section makes me feel really stupid.)

    Btw,
    .post-meta {
        display:none;
    }
    

    works when placed in Custom CSS Styles.

    But,
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
        h1 {
            page-break-before:always;
        }
    
        h1,  h2,  h3,  h4,  h5,  h6 {
            page-break-after:avoid;
        }
    
        ul,  ol,  dl {
            page-break-before:avoid;
        }
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    

    does not work when placed in Custom CSS Styles.

    Also, can child theme home.php just be a striped down version of parent theme home.php, containing just the changes?
  • It's closed because that's documentation :)

    Yes, exactly that's recommended, copy home.php and adjust to fit your needs.

    Emil
    hlanggo wrote:
    That is a relief to know.

    I used your sample child theme at:
    http://themeid.com/forum/topic/505/child-theme-example/
    (this thread is locked for some reason)

    And just replaced your stylesheet with:
    /*   
    Theme Name: Responsive Child Theme
    Theme URI: http://themeid.com/responsive-theme
    Description: Responsive Child Theme
    Author: Emil Uzelac
    Author URI: http://themeid.com
    Template: responsive
    Version: 1.0
    */
    
    /* Import Responsive Styles */
    @import url('../responsive/style.css');
    
    /* =Start Here
    -------------------------------------------------------------- */
    
    .post-meta {
        display:none;
    }
    
    
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
        h1 {
            page-break-before:always;
        }
    
        h1,  h2,  h3,  h4,  h5,  h6 {
            page-break-after:avoid;
        }
    
        ul,  ol,  dl {
            page-break-before:avoid;
        }
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    /*"The last 29 days of the month are the hardest."- Nikola Tesla*/
    

    Now, something more complicated. Can similar be done for home.php ?

    Can child theme home.php just be a striped down version of parent theme home.php, containing just the changes?
  • You replied like in less than a minute after I had just edited my previous post. Lol.

    Just going to cp my edited post.
    hlanggo wrote:
    Ugh. I just spotted the Custom CSS Styles section under Theme Options. (Was that always there?)

    I didn't even have to make a child theme. (Boy, do I feel stupid. Yeah, I'm a noob, but missing Custom CSS Styles section makes me feel really stupid.)

    Btw,
    .post-meta {
        display:none;
    }
    

    works when placed in Custom CSS Styles.

    But,
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
        h1 {
            page-break-before:always;
        }
    
        h1,  h2,  h3,  h4,  h5,  h6 {
            page-break-after:avoid;
        }
    
        ul,  ol,  dl {
            page-break-before:avoid;
        }
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    

    does not work when placed in Custom CSS Styles.

    Also, can child theme home.php just be a striped down version of parent theme home.php, containing just the changes?

    How do I make my print preview changes work in Custom CSS Styles.

    Also, can you please give me example of stripped down child theme home.php with just the following change?
    <?php $options = get_option('responsive_theme_options');
                // First let's check if headline was set
                    if (!empty($options['featured_content'])) {
                        echo do_shortcode($options['featured_content']);
                // If not display dummy headline for preview purposes
                      } else {             
                        echo '<img class="aligncenter" src="'.get_stylesheet_directory_uri().'/images/featured-image.png" width="440" height="300" alt="" />'; 
                       }
                ?>
    

    This is the change which makes shortcodes work in home.php. This is the only line that's changed.
    echo do_shortcode($options['featured_content']);
    
  • You did good with Child Theme and since you know your way around, I would leave Custom CSS from Theme Options as is. Yes, they're around for some time now, this was for people with 0 WP experience.

    Now please note that general styles should be placed under "Start Here". All media parts are separated and you can notice them near the bottom of style.css

    Media should work from Custom CSS, but it does not always, since you have child now, use it in there.

    P.S. Don't call yourself a noob, you're doing this awesomely my friend :)

    Emil


    hlanggo wrote:
    You replied like in less than a minute after I had just edited my previous post. Lol.

    Just going to cp my edited post.
    hlanggo wrote:
    Ugh. I just spotted the Custom CSS Styles section under Theme Options. (Was that always there?)

    I didn't even have to make a child theme. (Boy, do I feel stupid. Yeah, I'm a noob, but missing Custom CSS Styles section makes me feel really stupid.)

    Btw,
    .post-meta {
        display:none;
    }
    

    works when placed in Custom CSS Styles.

    But,
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
        h1 {
            page-break-before:always;
        }
    
        h1,  h2,  h3,  h4,  h5,  h6 {
            page-break-after:avoid;
        }
    
        ul,  ol,  dl {
            page-break-before:avoid;
        }
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    

    does not work when placed in Custom CSS Styles.

    Also, can child theme home.php just be a striped down version of parent theme home.php, containing just the changes?

    How do I make my print preview changes work in Custom CSS Styles.

    Also, can you please give me example of stripped down child theme home.php with just the following change?
    <?php $options = get_option('responsive_theme_options');
                // First let's check if headline was set
                    if (!empty($options['featured_content'])) {
                        echo do_shortcode($options['featured_content']);
                // If not display dummy headline for preview purposes
                      } else {             
                        echo '<img class="aligncenter" src="'.get_stylesheet_directory_uri().'/images/featured-image.png" width="440" height="300" alt="" />'; 
                       }
                ?>
    

    This is the change which makes shortcodes work in home.php. This is the only line that's changed.
    echo do_shortcode($options['featured_content']);
    
  • But I like to simplify stuff (and not have to use a child theme). Why doesn't @media print css work in Custom CSS Styles? (/insert overly dramatic WHY DOESN'T IT WORK?!)

    Also, could just you please consider fixing up media print? The print version looks horrible.

    Also also, making shortcodes work (as a default) in home.php seems like a really good idea. /hint hint hint
  • Did you paste this parts as well?
    @media print {
    }
    

    If that doesn't work, honestly I'm not sure, it should.

    Shortcodes work only on posts/pages and that's by WordPress default, they would not work anywhere else, including the widgets. I did however think of this, but could not find perfect solution that would not "bloat" the codes and/or break other stuff. They usually belong to plugins, but if properly done can be incorporated into Theme.

    Time is everything and that's something I'm lacking of.

    Emil

    hlanggo wrote:
    But I like to simplify stuff (and not have to use a child theme). Why doesn't @media print css work in Custom CSS Styles? (/insert overly dramatic WHY DOESN'T IT WORK?!)

    Also, could just you please consider fixing up media print? The print version looks horrible.

    Also also, making shortcodes work (as a default) in home.php seems like a really good idea. /hint hint hint
  • Woah. Doing this:
    if (!empty($options['featured_content'])) {
                        echo do_shortcode($options['featured_content']);]);
    

    breaks something else??? ?!? What other thing/s does it break?

    (This is why I don't like to edit stuff and just leave things as is.)

    ---

    This is what I put in Custom CSS Styles. .post-meta works. Rest doesn't.
    .post-meta {
        display:none;
    }
    
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    
  • If that works you're good, this is from home.php so it should not break anything. I was referring to functions.php and global shortcodes. Didn't really want to change codes after almost 150.000 downloads in little over 4 months. Doing this on individual basis is different than adding it in by default ;)

    Well that's it from me till later, it's getting late and I need some rest.

    Emil
    hlanggo wrote:
    Woah. Doing this:
    if (!empty($options['featured_content'])) {
                        echo do_shortcode($options['featured_content']);]);
    

    breaks something else??? ?!? What other thing/s does it break?

    (This is why I don't like to edit stuff and just leave things as is.)

    ---

    This is what I put in Custom CSS Styles. .post-meta works. Rest doesn't.
    .post-meta {
        display:none;
    }
    
    /* =Media Print
    -------------------------------------------------------------- */
    @media print {
    
    .widget-wrapper { display:none; }
    
    body { background:white; color:black; margin:0 }
    #header { display:none }
    #content { width:100%; display:block; }
    #comments { display:none }
    #sidebar { display:none }
    #footer { display:none }
    
    #widgets { display:none; }
    
    }
    
  • Thank you very much for your time!
  • no problem :)

    Emil
    hlanggo wrote:
    Thank you very much for your time!
  • Hello,

    I was wondering if it's possible using the child theme to have multiple full-width backgrounds? I'd like to have one for the header area, one of the main content and one for the footer. I suppose just having the header and footer with their own would solve the problem just as well.

    Thank you!
    Dave
    grappler wrote:
    Hello Everybody,

    You might know my widget contributions

    1. Header Widget
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download the zip file.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich

    Updated: 28.06.2012
    made changes to footer to include new social icons and copied improvements from parent theme.
    updated css sprites for new social icons and updated icons.png.
    updated header with a improvement from parent theme.
    Updated: 02.07.2012 - updated footer.php as the parent theme options update with yelp
    Update: 06.07.2012 - add print css to style and updated footer.php to be compatable with 1.6.9.
  • Hi,

    Child Theme or a Parent Theme, when it comes to design and general customizations they are treated the same way.

    Start from here:

    - http://css-tricks.com/perfect-full-page-background-image/

    Emil
    dkretz wrote:
    Hello,

    I was wondering if it's possible using the child theme to have multiple full-width backgrounds? I'd like to have one for the header area, one of the main content and one for the footer. I suppose just having the header and footer with their own would solve the problem just as well.

    Thank you!
    Dave
    grappler wrote:
    Hello Everybody,

    You might know my widget contributions

    1. Header Widget
    2. Home Featured Widgets
    3. Footer Widgets

    I have now created a child theme with all of them plus css sprite lcons.

    Here is a short explanation if you don't know what it is http://css-tricks.com/css-sprites/

    You can view the files of the child theme from here or download the zip file.

    If anyone wants me to add anything else let me know and I'll see what I can do.

    Ulrich

    Updated: 28.06.2012
    made changes to footer to include new social icons and copied improvements from parent theme.
    updated css sprites for new social icons and updated icons.png.
    updated header with a improvement from parent theme.
    Updated: 02.07.2012 - updated footer.php as the parent theme options update with yelp
    Update: 06.07.2012 - add print css to style and updated footer.php to be compatable with 1.6.9.
  • Thanks Emil,

    Wasn't necessarily what I was thinking, but I'm starting to picture how this might work for me. I certainly appreciate the response, and the tip!

    Thanks again!
    Dave
    Emil wrote:
    Hi,

    Child Theme or a Parent Theme, when it comes to design and general customizations they are treated the same way.

    Start from here:

    - http://css-tricks.com/perfect-full-page-background-image/

    Emil
    dkretz wrote:
    Hello,

    I was wondering if it's possible using the child theme to have multiple full-width backgrounds? I'd like to have one for the header area, one of the main content and one for the footer. I suppose just having the header and footer with their own would solve the problem just as well.

    Thank you!
    Dave
  • Hi, I tried to install the childtheme, but always get an error:

    Fatal error: Call to undefined function responsive_container() in C:\xampp\htdocs\wordpress\wp-content\themes\responsive.1.7.2 - Kopie\responsive\header.php on line 44

    I don't know how to handle this and have none experience with child-themes.

    Thank you in advance for any help :)
  • The child theme work perfectly.

    I see a problem with your folder setup. You need to have the two folders like this. The first the parent theme, you dont make any changes there. The second is your child theme.
    C:\xampp\htdocs\wordpress\wp-content\themes\responsive
    C:\xampp\htdocs\wordpress\wp-content\themes\responsive-child-theme

    Ulrich
  • Thx, that helped :)
    grappler wrote:
    The child theme work perfectly.

    I see a problem with your folder setup. You need to have the two folders like this. The first the parent theme, you dont make any changes there. The second is your child theme.
    C:\xampp\htdocs\wordpress\wp-content\themes\responsive
    C:\xampp\htdocs\wordpress\wp-content\themes\responsive-child-theme

    Ulrich
  • Hi, I have one more problem with the top widget.
    As you can see here: http://epvpimg.com/4kROb
    I have a space between the logo and the navigation bar, how can i reduce this space?

    Thanks, Zork
  • Zork,

    What's the live URL?

    Emil
    Zork wrote:
    Hi, I have one more problem with the top widget.
    As you can see here: http://epvpimg.com/4kROb
    I have a space between the logo and the navigation bar, how can i reduce this space?

    Thanks, Zork

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

    Most Popular This Week