Tagged: logo
-
AuthorPosts
-
January 13, 2021 at 3:29 pm #1272185
Hello, Kriesi team,
One of our clients has a website built in Enfold/Avia. They tried uploading a new logo on WP Dashboard > Enfold > Theme options > Logo. They made sure it was 340px wide as suggested. However, it’s not displayed on the front page. Screenshot:
https://pasteboard.co/JJs4Fb6.pngIn the site’s source, we found a bunch of jQuery that I can’t quite figure out (I don’t quite speak that programming language). The site was built by somebody else, not us, and our client says that dev apparently placed the jQuery there:
https://pasteboard.co/JJs5z8u.png<script> jQuery(document).ready(function( $ ) { // remove links from masonry "Referenzen" $("#av_section_6 a.av-masonry-entry").removeAttr('href'); //add logo with overflow into content $('#header_main').prepend("<div class='new_logo'><a href='/'></a></div>"); }); </script>
Now, I know this is gonna be a head scratcher, and I’m not quite sure you can help me, but here goes anyway. Since I didn’t build this site and my experience with Avia/Enfold is limited to say the least, I wonder:
- Do you recognize this jQuery? Is it part of your code, or did somebody else put it there?
- Is it responsible for the logo not displaying?
- How could it have gotten there? Is there a field for that kind of thing in the Enfold options?
- If the jQuery isn’t the culprit, what is?
I created a user for you. You can look into the backend, but since the site is live, please go easy on the plugin disabling. :-) Thanks in advance for your help!
===========================================
FYI, I worked around the problem for now by writing the following CSS:/* BUG: LOGO NOT DISPLAYED */ #header_main .new_logo a { background-image: url(https://www.[website-url-redacted].de/wp-content/uploads/2021/01/afp-lgo21-300x66.png); background-repeat: no-repeat; background-position: center 15px; background-size: 280px auto; } @media screen and (max-width:768px) { #header_main .new_logo a { background-position: center 10px; } } @media screen and (max-width:480px) { #header_main .new_logo { left: 0; top: 0; width: 240px !important; height: 80px; } #header_main .new_logo a { background-size: 210px auto; background-position: center 12px; } }
- This topic was modified 3 years, 9 months ago by 2SINN.
January 15, 2021 at 10:36 am #1272645Hey 2SINN,
The logo is displaying fine on my end on the home page, did you manage to find a solution? If not then please try loading the site in an incognito or private browser window to see if that helps.
Best regards,
RikardJanuary 15, 2021 at 12:09 pm #1272684I implemented a workaround, as I mentioned at the end of my post. The original problem persists. Feel free to comment out my custom CSS in Customize > Additional CSS to make the problem (in)visible. ;-)
January 17, 2021 at 4:12 pm #1273084Hi 2SINN,
Well, the code above is not from the theme so somebody added it. You can remove all that JavaScript and CSS and the logo should show up on your website.
Best regards,
VictoriaJanuary 18, 2021 at 5:04 pm #1273375Thanks, Victoria. That’s what I suspected. I’m wondering, are you aware of any option/field in Enfold that would have allowed the website’s dev to place the jQuery, or do you wager they added it to selected .php files manually? I’m struggling to answer that question myself since I did not develop that website, somebody else did and it was them who must have placed the code.
January 18, 2021 at 8:45 pm #1273463Hi 2SINN,
JQuery is still there, so there is no need to place it anywhere. Well, you can simply comment out that code and see if nothing breaks, then you can remove it.
Best regards,
VictoriaJanuary 20, 2021 at 2:49 pm #1274062Thanks Victoria! I was trying to figure out how it got there. I will see if our client can get a hold of the original developer to take it from here. Bring pretty much jQuery illiterate myself, this is my exit. ;-) Thanks for your help investigating this issue!
- This reply was modified 3 years, 10 months ago by 2SINN.
January 20, 2021 at 8:23 pm #1274188Hi 2SINN,
Sure :) Please let us know when and if you need more help!
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.