-
AuthorPosts
-
December 4, 2018 at 7:54 pm #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.
December 4, 2018 at 8:28 pm #1040916I 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.
December 4, 2018 at 8:33 pm #1040919Hey gatehealing,
The css seems correct.
Can you give us a screenshot or a link which shows this error?Best regards,
NikkoDecember 4, 2018 at 8:45 pm #1040937can you remind me how to get a screenshot up here? I have the screenshot.
December 4, 2018 at 8:54 pm #1040944I 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
December 4, 2018 at 9:32 pm #1040964Hi 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,
NikkoDecember 4, 2018 at 10:02 pm #1040975Ok, 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
December 4, 2018 at 11:37 pm #1040996I 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;
}December 4, 2018 at 11:43 pm #1041003I 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?
December 5, 2018 at 6:33 pm #1041327Good 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
December 5, 2018 at 6:39 pm #1041331Ok, 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
December 6, 2018 at 2:17 pm #1041660Hi 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,
NikkoDecember 6, 2018 at 7:57 pm #1041815No 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
December 10, 2018 at 4:28 pm #1043137Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.