Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1040888

    When I try to save the following code, I get an error stating:
    “error: Parse Error: Syntax error, unexpected ‘}’, expecting EOF on line 68”

    Here’s the code I have pasted (line 68 is the first close bracket ‘}’ . . . just just after “overflow: visible; in the #top .logo a { ” section:

    /* CSS – Subtext on right */

    #top .logo,
    #top .logo a {
    overflow: visible;
    }

    /* Subtext styling */
    .logo .subtext h1 {
    font-size: 20px;
    font-weight: 600;
    }

    .logo .subtext {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(120%, -50%);
    z-index: 999;
    }

    I’ve made sure I wasn’t missing anything, and the brackets seem to be correct.

    #1040916

    I have also tried removing the above code, and just using this:
    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= ‘<h1>Gate Healing, PLLC</h1>’;
    return $sub;
    }

    But the h1 text is not showing–I think the h1 text may just be white, so basically invisible.

    Website is https://gatehealing.com

    I also tried adding the subtext to the right code to the new code in this reply, but got the Parse Error again.

    #1040919

    Hey gatehealing,

    The css seems correct.
    Can you give us a screenshot or a link which shows this error?

    Best regards,
    Nikko

    #1040937

    can you remind me how to get a screenshot up here? I have the screenshot.

    #1040944

    I think I got it via google drive: https://drive.google.com/open?id=11yusDqq9TTgjuvnRNgfWEx0BHm2-rLqD

    J

    PS That screenshot has both the h1 basic text in functions.php and the subtext code below it

    #1040964

    Hi gatehealing,

    Thanks for providing the screenshot, css codes aren’t accepted in php files.
    The one you showed is functions.php file, please remove the css code there, and go to the WP Dashboard, then go to Enfold > General Styling > Quick CSS and place your css code there. :)

    Best regards,
    Nikko

    #1040975

    Ok, the subtext code on the Documetation page reads like this, so it may need to be corrected (?):
    Image logo with subtext
    You can add subtext to your logo by adding following code to Functions.php file of your child theme in Appearance > Editor
    The code below will wrap your subtext in a H1 tag, we will add custom CSS to style it.
    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= ‘<h1>Company Name</h1>’;
    return $sub;

    On this page https://kriesi.at/documentation/enfold/logo/#toggle-id-1

    #1040996

    I have now tried a few other methods with no results (I have cleared caches and history). Currently, I have put this in the Quick CSS section (further down this message I show what I have tried in functions.php per what the page in my last reply said–though I’ve tried all of this in Quick CSS too):
    /* CSS – Subtext on right */

    #top .logo,
    #top .logo a {
    overflow: visible;
    }

    /* Subtext styling */
    .logo .subtext h1 {
    font-size: 20px;
    font-weight: 600;
    }

    .logo .subtext {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(120%, -50%);
    z-index: 999;
    }

    THIS is what is currently in functions.php per https://kriesi.at/documentation/enfold/logo/#toggle-id-1 — but as I said, I also tried putting this in quick css. . . I have also tried this alone in both places, and the css code alone in Quick CSS) :

    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= ‘<h1>Gate Healing, PLLC</h1>’;
    return $sub;
    }

    #1041003

    I am seeing this Quick CSS from another ticket is conflicting:
    @media only screen and (max-width: 989px) and (min-width: 768px){
    .responsive #wrap_all .logo a, .responsive #wrap_all .logo img {
    max-width: 200px;
    }
    }
    @media only screen and (max-width: 989px) and (min-width: 768px){
    .responsive #wrap_all .logo a, .responsive #wrap_all .logo img {
    max-width: 200px;
    }

    Even when I remove this, the words “Gate Healing, PLLC” are stacked on top of one another and are using a very blocky font. I will keep reading to see if I can figure out how to use a little nicer looking font and stretch out the area for the words a bit. If it’s an easy thing you know off hand, great, but I don’t mind digging a little more.

    Is there a way to keep the previous Quick CSS so I don’t lose those benefits?

    #1041327

    Good night’s sleep cleared one thing up. . . for some reason, I had the above code twice, and the second one was missing a bracket. . . I removed the 2nd (since it was duplicate and was missing the bracket) and now I do see the business name. . .

    Now to find how to change font and to get it not to stack up like that.

    J

    #1041331

    Ok, I have this sort of working, but the new issue on mobile subtext in wrong place seems like it should be new thread. Will look for fix in documentation, but if it’s not there, I’ll start new thread unless y’all prefer for me to put it here.

    J

    #1041660

    Hi gatehealing,

    I apologize for the delayed response.
    You can create a new thread and just point us to it, so it’s easier for us to find, since there are lot of queries.
    If you have multiple questions, it’s best to separate them per thread.

    Best regards,
    Nikko

    #1041815

    No prob on delay. I’ve got the major stuff up and running. . .just small tweaks like this now. I have a temporary solution with the subtext under the logo, and that fixes the overlap issue as well. Will play with settings for having it to the right and another slight customization I’d like to use. Will post new thread if I cannot find it (and if history says anything, it says that minutes after I post a question, I’ll find the dang answer).

    Jon

    #1043137

    Hi Jon,

    Okay, just a tip make sure to disable caching plugin when making changes, sometimes css codes should already work but caching prevents the new css code from being fetched. :)

    Best regards,
    Nikko

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.