Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #896309

    Hey stovetopchicago,

    cacn you paste the code to a pastebin please, so we can make sure that ‘ is not converted to ` please?

    Best regards,
    Basilis

    #896327

    Hi 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,
    Stephan

    #897238

    Hi,

    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,
    Basilis

    #897277

    This issue went away now. Moderaor Mike edited some code concerning this issue for me and everything works now. Sorry!

    Thanks, Stephan

    #897376

    Hi 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,
    Rikard

    #897582

    It’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,\
    Stephan

    #897595

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Make tagline appear under text title’ is closed to new replies.