JavaScript How can I customize tabs in Wordpress? wordpress customize tabs

I am trying to create customized, togglable tabs in wordpress, but I am stuck. I would like to change the title part of the tabs to images. Something like that, but in wordpress:

http://jsfiddle.net/iamraviteja/ttpxoxob/1/

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link target='_blank' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />

<ul class="nav nav-tabs">
  <li class="active"><a data-toggle="tab" target='_blank' href="#home">Home</a>
  </li>
  <li>
    <a data-toggle="tab" target='_blank' href="#menu1">
      <img src="http://www.downloadsbyvita.com/images/video.jpg" />
    </a>
  </li>
  <li><a data-toggle="tab" target='_blank' href="#menu2">Menu 2</a>
  </li>
</ul>

<div class="tab-content">
  <div id="home" class="tab-pane fade in active">
    <h3>HOME</h3>
    <p>Some content.</p>
  </div>
  <div id="menu1" class="tab-pane fade">
    <h3>Menu 1</h3>
    <p>Some content in menu 1.</p>
  </div>
  <div id="menu2" class="tab-pane fade">
    <h3>Menu 2</h3>
    <p>Some content in menu 2.</p>
  </div>
</div>
Answer:1

I'm trying to add a class name to a child component, preserving the original classes that may be set to the component. Here is the code: import React, { Component } from "react"; import PropTypes ...

I'm trying to add a class name to a child component, preserving the original classes that may be set to the component. Here is the code: import React, { Component } from "react"; import PropTypes ...

I am using twitter bootstrap for a site and basically I have a order list within a div element. When the screen get resized to 768px, I want parent's div width, equally distributed among all child ...

I am using twitter bootstrap for a site and basically I have a order list within a div element. When the screen get resized to 768px, I want parent's div width, equally distributed among all child ...

I am trying to answer, when to use import/export and when to use require()/module.exports? But as I try to dig, it seems to get complicated. Here's my understanding require()/module.exports: this ...

I am trying to answer, when to use import/export and when to use require()/module.exports? But as I try to dig, it seems to get complicated. Here's my understanding require()/module.exports: this ...

  1. how code splitting works
  2. how webpack code splitting works

I'm currently using this to perform notifications: /** * Create notifications that broacast * the entire set of entries. */ protected notify = new ReplaySubject<E[]>(1); IIUC I ...

I'm currently using this to perform notifications: /** * Create notifications that broacast * the entire set of entries. */ protected notify = new ReplaySubject<E[]>(1); IIUC I ...