Tagged: tagline
-
AuthorPosts
-
January 10, 2018 at 10:40 pm #895836
Hi,
I am trying to use a text title with a tagline .
I added this code at the bottom of my functions .php file, line 585: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;
}I get this error:
Your PHP code changes were rolled back due to an error on line 587 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.syntax error, unexpected ‘class’ (T_CLASS)
This is line 587: $sub .= “<span class=’logo-title’>Company Name</span><br><span class=’logo-subtitle’>Here goes your
And I assume I would replace “company name” with site title and “Here goes your subtitle” with the tagline?
Thank you,
Stephan- This topic was modified 6 years, 11 months ago by stovetopchicago.
January 11, 2018 at 11:58 pm #896309Hey stovetopchicago,
cacn you paste the code to a pastebin please, so we can make sure that ‘ is not converted to ` please?
Best regards,
BasilisJanuary 12, 2018 at 12:32 am #896327Hi Basilis,
I”m no longer getting an error. It works, kind of….It shows the tagline in tablet and phone view but
-
not in the desktop view
.
And it displays in the same font size as the title text.
I put some quick CSS in that I got from moderator Zigit that allows me to control color and size of the title, but I can not control the tagline seperately.
Do you still want me to put it up in pastebin?
Thanks,
StephanJanuary 14, 2018 at 11:09 pm #897238Hi,
You just want now to edit the font size on mobile?
Can I see the site please so we can see it how it works?Best regards,
BasilisJanuary 15, 2018 at 12:58 am #897277This issue went away now. Moderaor Mike edited some code concerning this issue for me and everything works now. Sorry!
Thanks, Stephan
January 15, 2018 at 5:36 am #897376Hi Stephan,
Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJanuary 15, 2018 at 3:57 pm #897582It’s solved, thank you. In the future I may ask for CSS to tweak the behaviour, but it all works properly now.
I’m very happy with the level of support here, thank you!
Best Rergards,\
StephanJanuary 15, 2018 at 4:11 pm #897595Hi,
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Make tagline appear under text title’ is closed to new replies.