Perth FP: fact widget

am using “Perth FP: fact widget” …there are just 4 fact text available … i need additional one to be 5 facts …is there any way to make that ??
regards

Hello there,

In order to achieve that objective, could you please try to do the following?

  1. Install and activate the Header and Footer Scripts plugin. Go to Settings > Header and Footer Scripts.

  2. Paste the following to the “Scripts in header:” box


<style>
@media only screen and (min-width:992px){
  
  .fact{
    width: 19%;
  }
  
}
</style>

  1. Paste the following code into the provided “Scripts in footer:” box


<script>
(function($){

  if ( $( '.facts-area' ).length ) {

    var factIcon = 'fa-home';
    var factValue = '999';
    var factName  = 'My fact name';
    var newFactHTML = '<div class="fact"><div class="fact-icon"><i class="fa '+factIcon+'"></i></div><div class="fact-value" data-to="'+factValue+'">'+factValue+'</div><div class="fact-name">'+factName+'</div></div>';

    $( '.facts-area' ).append(newFactHTML );
    
  }  

})(jQuery);
</script>

Adjust the following variables’ values:


var factIcon = 'fa-home';
var factValue = '999';
var factName  = 'My fact name';

  1. Save settings

Clear your web browser’s cache before reloading your site.

Regards,
Kharis

its woooooorrrk :))

than you for your support :slight_smile: