Wordpress widget custom html not working with HTML code - php

I am facing an issue with my WordPress website when I try to add a logo in the website footer it's not working. I am adding this with the help of custom HTML code and that exact code is working on all other WordPress sites but not with this WordPress site. The loading circle at the bottom of the widget kept loading and I couldn't see the logo in the footer.
Hosting on: Namecheap
CDN: Cloudflare
Plugins: WP-Optimize, Loginizer, Smush, Hotjar, SVG Support, Elementor
Below is the code
<div id="custom_html-11" class="widget_text p-footer-section widget_custom_html">
<div class="textwidget custom-html-widget">
<img class="alignnone wp-image-17" src="https://example.com/wp-content/uploads/2023/01/cropped-logo-1.png" alt="" width="205px">
</div></div>```

Related

images aren't displayed locally

I'm doing the maintenance on a project developed with the symfony framework version 2.7. The problem I'm encountering is that the images aren't displayed locally but they are displayed in the online version.
The images are stored in web/uploads/Images. Following code is the one used to display the site's logo: <img src="{{ asset(setting.logo) }}?{{"now"|date("d/m/Y H:i:s")}}" data-bs-hover-animate="swing" class="logo">.
When I inspect local version with my browser, it displays: <img src="/uploads/logo.png?30/12/2019 13:37:21" data-bs-hover-animate="swing" class="logo"> and the logo is not displayed.
But when I modify the source code in local : <img src="{{ asset('uploads/Images/LogoALEX.png') }}?{{"now"|date("d/m/Y H:i:s")}}" data-bs-hover-animate="swing" class="logo"> the image is displayed.
Now I don't want to modify the source code since it works already online.please I'd like to have an explanation for this issue and know how to fix it.

Add administrable image for a page in Drupal 8

I am using Drupal 8 and i created a page where i display an image and a form inside a block as an inline template.
This looks like this :
<div class="col-md-6" style="padding-right:0px; padding-left:0px;">
<img src="{{ base_path ~ directory }}/sites/default/files/Dinard_S.jpg" id="b-frm-img" style="width: 400px; height:300px;"></div>
Then another div contains my form. What i'm trying to do is to make user with no code knowledge able to change this specific image from the drupal admin.
Is there any way to do this?
I created an admin page to upload an image in a dedicated folder using managed_file type in the form. Seems there is no better ways.

Strange ahref tag before <html> in wordpress - Have I been hacked?

In google search my site comes up as hacked! It's a wordpress site.
When I inspect the html content on chrome or firefox I see nothing out of the ordinary, but when I fetch from google I see the following before the main html tag:
<a href=http://healthandmovement.co.uk/hgqn/p5sh5.php?ldhzln=gazprom-energy-contact-number>4pnk</a>, <a href=http://thisandthatevents.com/7ftw/zcgep.php?ldhzln=industrial-automation-ppt-templates>htdvl</a>, <a href=http://accessdatabasetutorial.com/8whn/zuofy.php?ldhzln=lufthansa-catalogue-2017>7yn5p</a>, <a href=http://businessbaristabook.com/dcp6/eemht.php?ldhzln=huawei-b310s-manual>eddp</a>, <a href=http://www.coffeemegusta.ru/media/editors/codemirror/mode/clojure/imqn/th3qs.php?ldhzln=openai-gym-spaces>nuzke</a>, ...
Some more junk and then (warning, link without query string is NSFW):
... <a href=http://medindia.co/ye7s/mvs1y.php?ldhzln=road-rhino-kits>2fg</a>, 1<!DOCTYPE html>
And on the next line:
<html lang="en-GB" prefix="og: http://ogp.me/ns#" class="html_stretched responsive av-preloader-disabled av-default-lightbox html_header_top html_logo_left html_main_nav_header html_menu_right html_slim html_header_sticky html_header_shrinking html_header_transparency html_mobile_menu_phone html_header_mobile_behavior html_header_searchicon_disabled html_content_align_center html_header_unstick_top_disabled html_header_stretch_disabled html_minimal_header html_entry_id_10 ">
Have I been hacked? Do I have a malware on my wordpress site?
I have tried your regular wordpress site checkers like google safe browsing, sucuri and the wordfence plugin and the exploite scanner plugin and they have found nothing.

Magento Stops Outputting HTML When Encountering Images

This is for a Magento 1.8.0.0 shop. I purchased a bulk image plugin which required the Magento Connect Manager to install. For the install, I temporarily gave 777 permissions to the entire shop. The plugin installed successfully, however at this point the HTML output just stops when images are encountered.
For example, here are the bottom lines of three separate category pages:
<div class="grid-inner"> <a href="http://www.myshop.com/shop/index.php/accessories/buddy-club-racing-spec-bucket-seat-wide-black.html?___SID=U" title="Buddy Club Racing Spec Bucket Seat (Wide) Black" class="product-image"><img class="pr-img" src="
<div class="grid-inner"> <a href="http://www.myshop.com/shop/index.php/aero/buddy-club-body-kit-rsx-02-04.html?___SID=U" title="Buddy Club Body Kit RSX 02-04" class="product-image"><img class="pr-img" src="
<a href="http://www.myshop.com/shop/index.php/braking/dynalite-big-brake-kit-civic-90-03-240mm-oe-disc-11-rotors-drilled.html?___SID=U" title="DYNALITE BIG BRAKE KIT: CIVIC 90-03 (240mm OE DISC) - 11" ROTORS - DRILLED" class="product-image"><img class="pr-img" src="
All of the pages end this way and I can't even browse products.
I have tried re-doing the permissions to a number of different values, removed the plugin, contacted both my template vendor and the plugin vendor, turned on error logging in PHP and switching back to the default theme.
None of these actions have produced a difference. I would appreciate any help in troubleshooting.
h.ubk

.widget, article not found on Wordpress style.css

I am trying to find the element ".widget, article " in my style.css for my theme. What happened was it shows on developer tools, but I can't find it in the style page.
The layout is for the background, and is white by default
The web developer tools says its layout is
<article>
<header class="entry-header">...</header>
<div class="entry-content clearfix">...</div>
...
The Styles page says its in index:156 of the theme
.widget, article {
background: #8C3737;
}
I can't find the article element or change the index.php file appropriately to make the background transparent.
Any ideas of how to echo the id for the article when it loads, or any other?

Categories