Summer Sale | Flat 10% OFF on All Themes Package. Use Coupon Code Summer24 | Limited Time Offer! Buy Now

WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

Code showing in header Charity Theme

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40221
    Lisa Daris
    Participant

    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.

    #40230
    Grace Support
    Keymaster

    Hi,

    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

    #40309
    Lisa Daris
    Participant

    It 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}
    thrown

    #40312
    Grace Support
    Keymaster

    Hi,

    Please send your website URL and WordPress admin login details at [email protected] so we can check and assist you quickly.

    Regards
    Grace Themes

    #40371
    Lisa Daris
    Participant

    Hello, I sent the info to support@.
    Can you give me an update please?

    Thank you!

    #40374
    Grace Support
    Keymaster

    The problem has been solved.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.