A plugin created to replace two others to have the freedom and be able to hone down the simplicity of creating a map and supporting HTML. Map created with simple shortcode.
Simply add the [state_map]
shortcode on any page/post to create a beautifully styled map with generated labels and tooltips from your HTML file.
a. Create a full html file in web storm - blank will work for now...
- Open this Example State HTML file
- copy all information into your full html file in web storm
- Open your excel file
- copy state information and paste into tableizer
- Copy from tableizer
<tbody>....</tbody>
-> that's all, nothing else! - Paste
<tbody>...
info into your new full html file in web storm- into the same
<tbody
that is currently there
- into the same
- Open this Example State Tooltip Html File
- Add your state information for the tooltip, and copy/paste that into your full html file
- Now you have all needed information
- there are a couple changes needed at this point
- ensure opening div contains state abbreviation ie.
<div id="AL" class="state"> ...content ... </div>
- ensure the tooltip html follows the example: ie.
<div class="tooltip"> <span id="tooltip-span-AL"><strong>Rank:</strong>7 <strong>Average Debt:</strong> $31,257 <strong>Change from ’15:</strong> +1.81% <strong>Proportion with Debt:</strong> 51% </span></div>
ensure that the state abbreviation is included: ie.<span id="tooltip-span-AL">...
- ensure opening div contains state abbreviation ie.
- there are a couple changes needed at this point
- here is a full example file
- Slack Ray if you need anything
- Ray Flores - Initial work - LendEDU