Code showing in header Charity Theme
- This topic has 5 replies, 2 voices, and was last updated 1 year, 3 months ago by Grace Support.
-
AuthorPosts
-
February 10, 2023 at 9:38 pm #40221Lisa DarisParticipant
After the slider image switches to a new image, everything looks fine, but a few seconds later, text in box appears in the header at the top of the page.
February 11, 2023 at 4:03 am #40230Grace SupportKeymasterHi,
To solve this issue
Go to the Appearance -> Theme Editor -> header.php
Find the below code at line no. 124<img src=”<?php echo esc_url($sv[‘image_src’]); ?>” alt=”<?php echo esc_attr($sv[‘image_title’]);?>” title=”<?php echo ‘#slidecaption’.$n ; ?>”/>
Change it with
<img src=”<?php echo esc_url($sv[‘image_src’]); ?>” alt=”” title=”<?php echo ‘#slidecaption’.$n ; ?>”/>
Please make these changes and let me know if it works.
Regards
February 16, 2023 at 10:44 pm #40309Lisa DarisParticipantIt did not work. I have this message:
Your PHP code changes were rolled back due to an error on line 124 of file wp-content/themes/charity-help/header.php. Please fix and try saving again.Uncaught Error: Undefined constant “‘image_src’” in wp-content/themes/charity-help/header.php:124
Stack trace:
#0 wp-includes/template.php(783): require_once()
#1 wp-includes/template.php(718): load_template(‘/homepages/30/d…’, true, Array)
#2 wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#3 wp-content/themes/charity-help/index.php(13): get_header()
#4 wp-includes/template-loader.php(106): include(‘/homepages/30/d…’)
#5 wp-blog-header.php(19): require_once(‘/homepages/30/d…’)
#6 index.php(17): require(‘/homepages/30/d…’)
#7 {main}
thrownFebruary 17, 2023 at 4:32 am #40312Grace SupportKeymasterHi,
Please send your website URL and WordPress admin login details at [email protected] so we can check and assist you quickly.
Regards
Grace ThemesFebruary 20, 2023 at 9:23 pm #40371Lisa DarisParticipantHello, I sent the info to support@.
Can you give me an update please?Thank you!
February 21, 2023 at 4:48 am #40374Grace SupportKeymasterThe problem has been solved.
-
AuthorPosts
- You must be logged in to reply to this topic.