• Resolved lmhuby02

    (@lmhuby02)


    Note: I’m not a coder – I’m web-educated on WP & know just enough, which is part of the problem, I’m sure;)

    I added a header widget for advertising to https://runnergurlz.com, & then coded in a widget for ads to appear after a post. I previewed the site, and it looked great. I decided I wanted to change the post ad location, removed the old code in custom_functions.php, added in the new, & this is what I got:

    Fatal error: Cannot redeclare post_ad_widget() (previously declared in /home/content/87/6117487/html/wp-content/themes/thesis_17/custom/custom_functions.php:45) in /home/content/87/6117487/html/wp-content/themes/thesis_17/custom/custom_functions.php on line 68

    I tried removing the ad widget code entirely, but it just keeps looping to this error message. I’ve hunted high and low for resolution. I’m stuck, & of course, the website’s down.

    Can you please help??
    LM

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lmhuby02

    (@lmhuby02)

    Additional information: Here’s a snippet of the code found in & around line 68 that it seems to be referencing for some reason.

    65 function post_footer() {
    66 if (is_single())
    67 {
    68 ?>
    69 <div class=”postauthor”>

    Thread Starter lmhuby02

    (@lmhuby02)

    Took me ALLLLL day, but I finally tried another angle and have resolved the issue. I still have no idea what I did, but I suspect I may have duplicated the ad_post code somehow.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error: Cannot redeclare post ad widget’ is closed to new replies.