-
AuthorPosts
-
January 10, 2018 at 4:13 pm #895711
Hi ,
In another support thread I was given this information to change my site title to text:
Please add following code to Quick CSS in Enfold theme options under General Styling tab.logo img { display: none !important; }
And this:
then add following code to Functions.php file in Appearance > Editoradd_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
function kriesi_logo_addition($sub) {
$sub .= “Company Name”;
return $sub;
}And I changed “company name; to my title.
And it worked. Thank you.
But I want to be able to control the font size and add a tagline.
So I found the following page:
https://kriesi.at/documentation/enfold/add-subtext-to-logo-replace-logo-with-site-title/Is the code on that page what I would add to Functions.php to accomplish this? Which part?
There was also code in this support question that seems it might address the font control or a lack of responsiveness in smartphone rendering if I do this?
https://kriesi.at/support/topic/text-instead-of-logo-in-header-2/
This reply from Guenni007 seemed possible : Reply #486471
or this one:
From Rikard , reply #669671Would adding any of those accomplish what I want? And to the Quick CSS or functions. php? And would I remove what I already put in?
And most IMPORTANTLY, will an update overwrite what I put in the functions.php.? Should I start all over with a child theme?Thanks for your help and patience with me.
StephanJanuary 10, 2018 at 4:21 pm #895714Hi Stephan,
If you have already added the code to functions.php file and displaying text, you can simply add following code to Quick CSS in Enfold theme options under General Styling tab
.logo .subtext { font-size: 28px; color: orange; }
and adjust it as needed.
If you have not added the code in functions.php file to display text, please add following code to Functions.php file
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "Company Name"; return $sub; }
Best regards,
YigitJanuary 10, 2018 at 5:58 pm #895757Hi Yigit,
Thank You, that works.
Is there a code to add my tagline beneath that?
StephanJanuary 10, 2018 at 6:01 pm #895760Hi!
Sure, you can use the code as following
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<span class='logo-title'>Company Name</span><br><span class='logo-subtitle'>Here goes your subtitle</span>"; return $sub; }
Best regards,
YigitJanuary 10, 2018 at 6:38 pm #895782Hi Yigit,
That didn’t work. Still no subtitle. I removed the old edit (?) and replaced it with this at the bottom of the functions.php secton: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’>Fine Artist Stephan Giannini</span>”;
return $sub;
}(first I had just added it below the old edit and it gave me an error)
Thanks,
Stephan- This reply was modified 6 years, 11 months ago by stovetopchicago.
January 15, 2018 at 12:59 am #897278This issue is solved, Thanks
January 15, 2018 at 2:12 am #897291 -
AuthorPosts
- The topic ‘Replacing Logo with Text and then Control Font size and Add Tagline’ is closed to new replies.