Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="wrapper" id="single-wrapper">

	<div class="container" id="content" tabindex="-1">

		<div class="row">

			<!-- Do the left sidebar check -->

<div class="col-md-8 content-area" id="primary">
			<main class="site-main" id="main">

					<article class="post-1260 post type-post status-publish format-standard has-post-thumbnail hentry category-uncategorized" id="post-1260">

	<header class="entry-header">

		<h1 class="entry-title">feature image</h1>
		<div class="entry-meta">

			<span class="posted-on">Posted on <a href="" rel="bookmark"><time class="entry-date published updated" datetime="2019-05-02T12:33:18+00:00">May 2, 2019</time></a></span><span class="byline"> by <span class="author vcard"><a class="url fn n" href="">Tom</a></span></span>
		</div><!-- .entry-meta -->

	</header><!-- .entry-header -->

	<img width="640" height="369" src="" class="attachment-large size-large wp-post-image" alt="An old map." srcset=" 1024w, 300w, h 768w" sizes="(max-width: 640px) 100vw, 640px">
	<div class="entry-content">

		<p><img class="alignleft size-medium wp-image-1261" src="" alt="An old map." width="300" height="173" srcset=" 300w, 768w, 1024w" sizes="(max-width: 300px) 100vw, 300px"></p>

	</div><!-- .entry-content -->

	<footer class="entry-footer">

		<span class="cat-links">Posted in <a href="" rel="category tag">Uncategorized</a></span><span class="edit-link"><a class="post-edit-link" href=";action=edit">Edit <span class="screen-reader-text">"feature image"</span></a></span>
	</footer><!-- .entry-footer -->

</article><!-- #post-## -->

										<nav class="container navigation post-navigation">
					<h2 class="sr-only">Post navigation</h2>
					<div class="row nav-links justify-content-between">
						<span class="nav-previous"><a href="" rel="prev"><i class="fa fa-angle-left"></i>&nbsp;Previous Post</a></span>					</div><!-- .nav-links -->
				</nav><!-- .navigation -->

			</main><!-- #main -->

		<!-- Do the right sidebar check -->
</div><!-- #closing the primary container from /global-templates/left-sidebar-check.php -->

<div class="col-md-4 widget-area" id="right-sidebar" role="complementary">
	<aside id="search-2" class="widget widget_search"><form method="get" id="searchform" action="" role="search">
	<label class="assistive-text" for="s">Search</label>
	<div class="input-group">
		<input class="field form-control" id="s" name="s" type="text" placeholder="Search …" value="">
		<span class="input-group-append">
			<input class="submit btn btn-primary" id="searchsubmit" name="submit" type="submit" value="Search">
</aside>		<aside id="recent-posts-2" class="widget widget_recent_entries">		<h3 class="widget-title">Recent Posts</h3>		<ul>
					<a href="">feature image</a>
					<a href="">(no title)</a>
					<a href="">mammoth test</a>
					<a href="">long post</a>
					<a href="">red and black</a>
		</aside><aside id="recent-comments-2" class="widget widget_recent_comments"><h3 class="widget-title">Recent Comments</h3><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link">Tom</span> on <a href="">Hello world!</a></li><li class="recentcomments"><span class="comment-author-link">Tom</span> on <a href="">iframe auto size test</a></li><li class="recentcomments"><span class="comment-author-link"><a href="" rel="external nofollow" class="url">A WordPress Commenter</a></span> on <a href="">Hello world!</a></li></ul></aside><aside id="archives-2" class="widget widget_archive"><h3 class="widget-title">Archives</h3>		<ul>
				<li><a href="">May 2019</a></li>
	<li><a href="">April 2019</a></li>
	<li><a href="">February 2019</a></li>
	<li><a href="">January 2019</a></li>
	<li><a href="">July 2018</a></li>
	<li><a href="">June 2018</a></li>
	<li><a href="">February 2015</a></li>
	<li><a href="">February 2010</a></li>
			</aside><aside id="categories-2" class="widget widget_categories"><h3 class="widget-title">Categories</h3>		<ul>
				<li class="cat-item cat-item-46"><a href="">Black</a>
	<li class="cat-item cat-item-25"><a href="">Blog9</a>
	<li class="cat-item cat-item-45"><a href="">Red</a>
	<li class="cat-item cat-item-1"><a href="">Uncategorized</a>
			</aside><aside id="meta-2" class="widget widget_meta"><h3 class="widget-title">Meta</h3>			<ul>
			<li><a href="">Site Admin</a></li>			<li><a href=";_wpnonce=ce48ca09da">Log out</a></li>
			<li><a href="">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="" title="Powered by WordPress, state-of-the-art semantic personal publishing platform."></a></li>			</ul>
</div><!-- #secondary -->

	</div><!-- .row -->

</div><!-- Container end -->



                .hidden {
  display: none;


                let featured = document.querySelectorAll('img')[0]
let content = document.getElementsByClassName('entry-content')[0]

let firstImg = content.querySelectorAll('img')[0]

if (featured.src === firstImg.src){
  //firstImg.classList.add('hidden') //for