This line is your problem:
$new_site_name = $site_name . '<sup>echo '<img src="' . plugins_url( 'images/wordpress.png' ,"logo.jpg" ) . '" > '</sup>';
Here you’ve muddled up the quotes and put PHP code inside a string expecting it to still work.
e.g.
echo ' this is inside a quote:' inside a quote ' . ';
It doesn’t work because the quote in your string closes the starting quote, ending the string. To fix this you need to either:
- use a double quote
- escape your characters
e.g.
echo 'this is inside a quote \' inside a quote \' .';
As a side note, make sure that your code editor supports syntax highlighting with a good colour scheme, it will make these kinds of issues more obvious.
Related Posts:
- How can I make add_image_size() crop from the top?
- How to custom crop each image size?
- Is it possible to “freeze” a WordPress blog?
- How to Delete All regenerated thumbnails but keep the original ones?
- How to upload image with simple form?
- Using Advanced Custom Fields with WordPress and Lightbox
- Way to force media uploader use custom image size
- How to make WordPress use protocol indepentent upload files?
- Use Media Uploader in Plugin
- Upload images from custom plugin using the media modal
- resize only height using wp_get_image_editor
- Get uploaded image url
- Layout shop page: resize images and columns
- How to crop image from center using wp_image_editor
- How to show category images (from plugin) on a regular page (page-example.php)?
- Saving/Writing/Adding file to upload folder
- How to limit 1 image per post on homepage only?
- Flickr plugin that will display photos from multiple group pools? [closed]
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Converting Attachment to Images?
- Bulk Image Uploader to create new post from each image [closed]
- Regenerate images with automatic ALT and TITLE attributes
- How to add a random image to a post from gallery and only show one?
- Is there a way to dynamically get URL as a path to plugin root, not a local path?
- Preview featured image using frontend post plugin
- How to resize images due to container width automatically server side/without CSS
- Set featured image randomly from WordPress Database on post submission
- How to create a managed image repository in wordpress
- Why WordPress plugin url ajax doesn’t work?
- wp_generate_attachment_metadata is creating an empty array
- Contact Form 7 Get Image Function [closed]
- How generate 200% image size and save with suffix @2x
- Bulk edit WP posts to update embeded images with new alt tags
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Retrieving Meta from Image Attachment
- How to upload multiple files/images when developing a wordpress plugin?
- Implementing an image hosting website using WordPress? [closed]
- check if a file in a plugin folder exists from a locale installation
- Redirect to another page using contact form 7? [closed]
- How to apply lazy loading in background images [closed]
- Woocommerce showing images blurry in description page
- plugins_url() works everywhere but wp_reqister_script()
- Photo Gallery Plugin and Touch Devices
- Image crop, resize and compression plugin?
- How to Resize the Custom Post Images?
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Images under 1MB are not being compressed
- Blurry images when loading the page first time
- Search by Attachment ID
- Overwrite add_image_size defined by theme
- Is there a Image Gallery which will load all my posted Images like twitter’s image grid?
- Offer Download Links for Product Images
- Optimal image size for wordpress?
- Copy/paste local images not working in WordPress
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- Is there a way to auto generate poster image for videos
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- Do images in plugins automatically load?
- I need to register and resize images, safe to delete plugin afterwards?
- Displaying all the images from all of my articles
- WP_get_image_editor resizing images in a foreach loop
- Remove special characters from filenames
- Why is my site still showing insecure icon even if I have SSL certificate?
- Looking for Image Slider that is based on default WP Media Library
- WooCommerce or any other plugin: Deliver JS and CSS through CDN without using a Plugin
- How to make cover image in post block expand to entire screen?
- Insert Sponsor logo in custom own theme
- flip horizontal images in bulk
- Optimize and delete images in WordPress
- Upload image to wordpress using ionic/cordova with WP REST API V2
- How to Display image from Menu Image in Walker Dropdown Select Menu
- Change default url to plugin custom post type
- Is there any hook to change media html in post? [duplicate]
- Add image to post
- How to force regenerate thumbnails in WordPress posts?
- resizes images on the fly
- export high ress images to pdf
- Any way to edit/crop my featured image upon uploading?
- adding image in the header of my dev widget
- How to select featured images for 1500 posts?
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- How to show post attachment image
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Adding Relevant Post Images
- Images not showing and plugins not installing on wordpress server move
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- Any plugins that upload, resize, and display images? [closed]
- Displaying single Instagram images as a tile
- How can I server scaled images?
- Adding hero images to blog posts
- Is there a WordPress Plugin like Imsanity that keeps high resolution originals? [closed]
- Images get uploaded itself from the computer
- Change from blogger to wordpress
- How to show image caption in Woocommerce gallery
- How To Convert External Image URLs To Own Website’s Uploaded Images Automatically?
- LiteSpeed cache image Optimization
- WP galleries in posts after import. How do I do it?
- WP_PLUGIN_URL equivalent