• Hi,
    I’m nearly there with my new website.
    Problem is that I can’t see anything in my Media Library when the child theme is activated. When I activate the parent I see the media I uploaded in the child theme. What do I do wrong?
    Here’s my style.css code:

    /*
    Theme Name: Customizr Child
    Description: A Customizr Child Theme
    Author: Linde Ex
    Template: customizr
    */
    
    @import url("../customizr/style.css");
    
    @media (min-width: 768px) {.col-sm-6 {width: 33% !important;} }
    
    /* START OF Change Customizr Background to Texture or Image  */
    /* Set the color (white) of the body, wrapper, header & footer */
    body, #main-wrapper, header.tc-header, footer#footer .colophon {
    background-color: white;
    }
    /* END OF Change Customizr Background to Texture or Image  */
    
    /* START OF Change Grey Bar between Navbar and Slider */
    header.tc-header {
    border-bottom: 0;
    }
    /* END OF Change Grey Bar between Navbar and Slider */
    
    /* START OF Remove Grey Bar and Whitespace from Footer */
    /* Remove grey bar  */
    footer#footer {
    border-top:     none;
    }
    
    /* Reduce whitespace  */
    #main-wrapper {
    margin-bottom:  0px;
    }
    /* END OF Remove Grey Bar and Whitespace from Footer */
    
    font-family: 'Lato', sans-serif;
    
    /* Remove Post/Page Icon */
    .page #main-wrapper h1.format-icon:before {
    content: none;
    } 
    
    /* START OF Move the Social Icons */
    /* Move SI to Right, adjust margins if needed   */
    .navbar-inner .social-block {
    float:          right;
    margin-top:     10px;
    margin-right:   0px;
    text-align:     right;
    }
    /* END OF Move the Social Icons */
    
    #categories-3 .widget-title:before { display: none; }
    
    a,
    .widget h3:before{
         color: #a0b78a;
    }
    .navbar-wrapper .navbar h2,
    h2.site-description,
    .navbar .nav > li.current-menu-item > a,
    .navbar .nav > li.current-menu-ancestor > a{
         color: #a0b78a;
    }
    .btn-link,
    .navbar-link:focus,
    .navbar .nav > li > a:hover,
    .navbar .nav li.dropdown.open.active > .dropdown-toggle,
    .carousel-control:focus,
    .archive .archive-header .format-icon:before,
    .dropdown-menu > li.current-menu-ancestor > a,
    .dropdown-submenu:focus > a,
    .widget.widget_rss li:before,
    .social-block a:hover,
    .page-links button.btn,
    #footer #calendar_wrap table a,
    footer#footer .colophon a.back-to-top {
         color: #b6c1ae;
    }
    .nav-list > .active > a:focus,
    .nav-pills > .active > a:focus {
         background-color: #b6c1ae;
    }
    a.thumbnail:focus {
         border-color: #b6c1ae;
    }
    .tc-header {
         border-top-color: #b6c1ae;
    }
    .nav .dropdown-toggle .caret,
    .navbar .nav li.dropdown > a:focus .caret,
    .navbar .nav li.dropdown.open.current-menu-ancestor > .dropdown-toggle
    .caret {
         border-top-color: #b6c1ae;
         border-bottom-color: #b6c1ae;
    }
    blockquote,
    .dropdown-menu > li.current-menu-ancestor > a:after {
         border-left-color: #b6c1ae;
    }
    a:focus,
    .btn-link:focus {
         color: #aaa799;
    }
    .navbar .btn-navbar[disabled],
    #wp-calendar th {
         background-color: #aaa799;
    }
    .btn-primary[disabled] {
         background-color: #aaa799;
         *background-color: #aaa799;
    }
    .nav .dropdown-toggle:focus .caret {
         border-top-color: #aaa799;
         border-bottom-color: #aaa799;
    }
    .btn-primary.active {
         background-color: #aaa799 \9;
    }
    .navbar .btn-navbar[disabled] {
         background-color: #aaa799;
         *background-color: #aaa799;
    }
    h3.assistive-text {
         color: #a0b78a;
    }
    .uneditable-input:focus {
         border-color: #a0b78a;
         -webkit-box-shadow: 0 0 8px #a0b78a;
         -moz-box-shadow:     0 0 8px #a0b78a;
         box-shadow:         0 0 8px #a0b78a;
    }
    .dropdown-submenu:focus > a,
    .dropdown-menu > .active > a:focus {
         background-color: #d70707;
         background-image: -webkit-gradient(linear, 0 0, 0 100%,
    from(#b6c1ae), to(#98a88a));
         background-image: -webkit-linear-gradient(top, #b6c1ae, #c80606);
         background-image: -moz-linear-gradient(top, #b6c1ae, #c80606);
         background-image: -o-linear-gradient(top, #b6c1ae, #c80606);
         background-image: linear-gradient(to bottom, #b6c1ae, #c80606);
         filter:
    progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe10707' ,
    endColorstr='#ffc80606' , GradientType=0)
    }
    .btn-primary {
         background-color: #98a88a;
         background-image: -moz-linear-gradient(top, #b6c1ae, #aaa799);
         background-image: -webkit-gradient(linear, 0 0, 0 100%,
    from(#b6c1ae), to(#aaa799));
         background-image: -webkit-linear-gradient(top, #b6c1ae, #aaa799);
         background-image: -o-linear-gradient(top, #b6c1ae, #aaa799);
         background-image: linear-gradient(to bottom, #b6c1ae, #aaa799);
         filter:
    progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe10707' ,
    endColorstr='#ff970505' , GradientType=0);
         border-color: #aaa799 #aaa799 #4d0202;
         *background-color: #aaa799;
    }
    .btn-info {
         background-color: #a0b78a;
         background-image: -moz-linear-gradient(top, #a0b78a, #a0b78a);
         background-image: -webkit-gradient(linear, 0 0, 0 100%,
    from(#a0b78a), to(#a0b78a));
         background-image: -webkit-linear-gradient(top, #a0b78a, #a0b78a);
         background-image: -o-linear-gradient(top, #a0b78a, #a0b78a);
         background-image: linear-gradient(to bottom, #a0b78a, #a0b78a);
         filter:
    progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffa5454' ,
    endColorstr='#fff70a0a' , GradientType=0);
         border-color: #a0b78a #a0b78a #b00505;
         *background-color: #a0b78a;
    }
    .navbar .btn-navbar {
         background-color: #ab0505;
         background-image: -moz-linear-gradient(top, #98a88a, #aaa799);
         background-image: -webkit-gradient(linear, 0 0, 0 100%,
    from(#98a88a), to(#aaa799));
         background-image: -webkit-linear-gradient(top, #98a88a, #aaa799);
         background-image: -o-linear-gradient(top, #98a88a, #aaa799);
         background-image: linear-gradient(to bottom, #98a88a, #aaa799);
         filter:
    progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc80606' ,
    endColorstr='#ff7e0404' , GradientType=0);
         border-color: #aaa799 #aaa799 #181c19;
         *background-color: #aaa799;
    }
    .btn-info[disabled] {
         background-color: #a0b78a;
    
    add_filter('tc_content_title_tag' , 'my_title_tag');
    function my_title_tag() {
        return 'h2';
    }
         *background-color: #b6c1ae;
    }
    .btn-info.active {
         background-color: #98a88a \9;
    }
    .navbar .btn-navbar.active {
         background-color: #aaa799 \9;
    }
    a.carousel-control:hover {
         color: #b6c1ae;
    }
    .widget.widget_archive li:before,
    .widget.widget_categories li:before,
    .widget.widget_calendar li:before,
    .widget.widget_pages li:before,
    .widget.widget_links li:before,
    .widget.widget_meta li:before,
    .widget.widget_recent_entries li:before,
    .widget.widget_recent_comments li:before,
    .widget.widget_nav_menu li:before,
    .widget.widget_rss li:before {
         color: #b6c1ae;
    }

    And here my functions.php:

    <?php
           add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
           function enqueue_parent_theme_style() {
                 wp_enqueue_style( 'parent-style',    get_template_directory_uri().'/style.css' );
           }
         ?>
    <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>

    url: https://www.beeldopener.nl

    Thanx ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • When you made the Child theme did you copy the functions.php ?

    Try to, in the child theme functions.php
    Remove all code.

    <?php
    See if that helps.
    If not how did you create your childtheme, with plugin or manually?

    Did you copy functions.php from parent theme?

    Try to, in the child theme functions.php
    remova all.

    Did that help?
    If not
    How did you create your child theme, plugin or manually?

    Remove @import line – not needed

    .col-sm-6 is Bootstrap 3 code, Czr uses Bootstrap 2

    font-family: ‘Lato’, sans-serif; has no selector. Try
    body {font-family: ‘Lato’, sans-serif;}

    See where that gets you.

    Did you see this

    Thread Starter lindeex

    (@lindeex)

    That worked really well! Thank you Robruu!
    I’m a real newby ??

    Thread Starter lindeex

    (@lindeex)

    Ok, @rdellconsulting I will do that too
    Thanks for the professional support

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Media library doesn't work in child theme’ is closed to new replies.