• I have been given the task to try and pinpoint the location of html that is currently being displayed on the front page of a WordPress site. The text appears as a caption under a bootstrap carousel. I have looked all through the source files, and it doesn’t appear anywhere. I have inspected all of the pages (there are no posts) via the admin area, and nothing there either. When I say that I have looked at “all” the source files, I just mean those files that are within the site’s theme folder. I also took at look at the index file outside the theme folder, just for the sake of looking. Nothing there either. Neither is the text to be found as a physical part of any of the images, nor is it being executed via javascript. I am new to WordPress development, so I am wondering, is it possible for this text to be located somewhere outside of the theme folder, and still be appearing the way it is?

    Thanks for any and all help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • It could be the Title/Caption/Alt Text for the image in the carousel. Check the images in the media library.

    There may be an option to not display ‘captions’ somewhere in the setup too…

    Thread Starter bgoldman

    (@bgoldman)

    Thanks, Kayless. Unfortunately, no luck. This is one of the weirdest code issues I’ve seen. It’s ghost code. When I inspect element I can see from the markup that it’s just a simple paragraph under the carousel. It has a class of “inner-deck”. So I’m thinking that this following code might be pulling it in as post data?

    “<p class=”inner-deck”>
    <?php echo get_post_meta($post->ID, ‘inner-deck’, true) ?>
    </p>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”main”>
    <?php the_content(‘Read the full story’); ?>
    </div>
    <?php endwhile; ?>
    <?php endif; ?>”

    However, the site has no posts set up. So I have no idea where it could be pulling that data from.

    Have you tried deactivating all your plugins?

    If it’s still there, leave them off and switch to a default theme.

    Check again.

    Thread Starter bgoldman

    (@bgoldman)

    Thanks, WPyogi. I hadn’t thought of that. I’ll update you as soon as I get a chance to try it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Html of unknown origin’ is closed to new replies.