Tagged: child theme
-
AuthorPosts
-
January 12, 2018 at 9:23 pm #896677
I’m new at this and I’ve made minor changes to the functions.php file with code supplied by Kreisi.
It’s not clear whether I should be using a child theme or not before I get to far?
Thanks, Stephan
- This topic was modified 6 years, 11 months ago by stovetopchicago.
January 12, 2018 at 11:15 pm #896713Hey stovetopchicago,
Yes a child theme is recommend as it will protect your customizations in the event of an update.
Best regards,
Jordan ShannonJanuary 13, 2018 at 1:29 am #896760Hi Jordan,
Ok, I did that.
Then imported Parent theme settings.
But it did not import the changes I made by uploading the minimal demo and some advanced styling changes I made.
Was it supposed too?
Thanks, StephanJanuary 13, 2018 at 2:51 am #896771Hi,
It should import the changes from the demo, Please clear any plugin cache, logout and clear your browser cache, then login in again.
For your custom css, where did you make the changes, “General Styling > Quick CSS field” or “WordPress > Customize” or a css plugin?Best regards,
MikeJanuary 13, 2018 at 5:52 am #896840HI Mike,
Clearing everything and logging in and out got the minimal demo stuff back .But not the Code and CSS modifications. I deleted them and saved them and tried putting them back in again with no different results.
My goal was to try to replace the Enfold logo with a text site title and tagline. The logo is still there everywhere and my text and tagline only appear in phone and tablet view.
This is in the child theme quick CSS;
.logo .subtext {
font-size: 28px;
color: #000000;
}And this is in the child theme functions.php:
add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
function kriesi_logo_addition($sub) {
$sub .= “<span class=’logo-title’>Painted Journals</span><br><span class=’logo-subtitle’>Maine Based Artist Stephan Giannini</span>”;
return $sub;
}I deleted all new code and CSS from the parent theme. If you want to look at it, there’s login details in the private content.
Thanks,
StephanJanuary 13, 2018 at 6:47 pm #896912Hi,
When I logged in you title was showing but the subtitle was below behind the slider, I added this in the General Styling > Quick CSS field to solve:#top .logo-subtitle { color: #aaa !important; font-size: 12px !important; top: 30px !important; position: absolute; white-space: nowrap; }
it now shows on all devices, please clear your browser cache and check.
Best regards,
MikeJanuary 13, 2018 at 11:16 pm #896969Thank You ,Mike, works correctly now.
January 13, 2018 at 11:24 pm #896974 -
AuthorPosts
- The topic ‘Should I use a Child Theme?’ is closed to new replies.