Child Theme CSS not working :(
-
For whatever reason, the CSS for my child theme stopped working, any help would be much appreciated.
Here is the functions.php:
‘<?php
/*
*
* Joyn Functions – Child Theme
* ————————————————
* These functions will override the parent theme
* functions. We have provided some examples below.
*
*
*//* LOAD THEME LANGUAGE
================================================== */
/*
* You can uncomment the line below to include your own translations
* into your child theme, simply create a “language” folder and add your po/mo files
*/// load_theme_textdomain(‘swiftframework’, get_stylesheet_directory_uri().’/language’);
/* REMOVE PAGE BUILDER ASSETS
================================================== */
/*
* You can uncomment the line below to remove selected assets from the page builder
*/// function spb_remove_assets( $pb_assets ) {
// unset($pb_assets[‘parallax’]);
// return $pb_assets;
// }
// add_filter( ‘spb_assets_filter’, ‘spb_remove_assets’ );/* ADD/EDIT PAGE BUILDER TEMPLATES
================================================== */
function custom_prebuilt_templates($prebuilt_templates) {/*
* You can uncomment the lines below to add custom templates
*/
// $prebuilt_templates[“custom”] = array(
// ‘id’ => “custom”,
// ‘name’ => ‘Custom’,
// ‘code’ => ‘your-code-here’
// );/*
* You can uncomment the lines below to remove default templates
*/
// unset($prebuilt_templates[‘home-1’]);
// unset($prebuilt_templates[‘home-2’]);// return templates array
return $prebuilt_templates;}
//add_filter( ‘spb_prebuilt_templates’, ‘custom_prebuilt_templates’ );function custom_post_thumb_image($thumb_img_url) {
if ($thumb_img_url == “”) {
global $post;
ob_start();
ob_end_clean();
$output = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches);
if (!empty($matches) && isset($matches[1][0])) {
$thumb_img_url = $matches[1][0];
}
}return $thumb_img_url;
}
add_filter( ‘sf_post_thumb_image_url’, ‘custom_post_thumb_image’ );?>’
Here is the style.css:
‘
/* LICENSE & DETAILS
==================================================Theme Name: Joyn Child Theme
Theme URI: http://joyn.swiftideas.com
Description: An Incredible Responsive Multi-Purpose WordPress Theme – Designed & Developed by Swift Ideas ( http://www.swiftideas.net )
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: joyn
Version: 1.0
Author: Swift Ideas
Author URI: http://www.swiftideas.netAll files, unless otherwise stated, are released under the GNU General Public License
version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html)==================================================
*//* ——————————————–
JOYN CSS IMPORT
——————————————– */@import url(“../joyn/style.css”);
/* ——————————————–
CHILD THEME CSS
——————————————– */.header-wrap[class*=”page-header-naked”] .sticky-header, .full-center[class*=”page-header-naked”] #header { background-color: rgba(0,0,0,0.3);
.fancy-heading.fancy-image.light-style h1, .fancy-heading.fancy-image.light-style h3 { padding-top: 50px; }
.full-center nav#main-navigation ul.menu { text-transform: uppercase; }
.hester-btn { position: relative; display: inline-block; width: 255px; height: 50px; line-height: 50px; text-align: center; cursor: pointer !important; font-family: ‘Merriweather’, serif; font-size: 15px; font-style: italic; font-weight: 400; }
.red-btn { background-color: #EE382E; transition: background-color 0.2s ease-in-out; }
.red-btn:hover { background-color: #ccc; color: black; }
#recent-posts-5 .title-wrap { display: none; }
.widget ul li > a { padding: 0; }
.widget ul li:first-child { padding: 0 0 10px 0; }
.widget ul li:nth-child(n + 2) { padding: 10px 0; }
#footer-widgets, #footer-widgets p { font-family: ‘Oswald’, sans-serif; font-weight: 300; font-size: 17px; line-height: 30px; }
‘
The topic ‘Child Theme CSS not working :(’ is closed to new replies.