Yes. You can use one of build-in filters:
To replace whole box:
add_filter( 'iworks_upprev_box', 'iworks_upprev_box_mycontent' ); function iworks_upprev_box_mycontent( $content ) { $value = '<div id="upprev_box">'; $value .= '<h6>My own title</h6>'; $value .= '<div class="upprev_excerpt">'; $value .= '<h5>Lorem ipsum</h5>'; $value .= '<p>Lorem ipsum dolor sit amet, consectetur '; $value .= 'adipiscing elit. Vestibulum auctor neque vitae orci '; $value .= 'ornare et vehicula eros molestie.</p>'; $value .= '</div>'; $value .= sprintf( '<a id="upprev_close" href="#" rel="close">%s</a>', __('Close', 'upprev') ); $value .= '</div>'; return $value; } |
Get code: iworks-upprev-static-content.php.zip
Where to put this code?
There are three ways:
- made a one-file-plugin and put file into
wp-content/plugins
, then turn it on - made a one-file-plugin and put file into
wp-content/mu-plugins
- put this code into
functions.php
in current theme
I recommend using option 1 or 2, but 3 is the easiest.
Is there a way to add multiple at random?
Yes. Just rand and cup of if else statement.
Hi, awesome plugin, but how to modify this plugin padding?
Because I want this without padding, as you can se below screenshot, it looks very small.
http://prntscr.com/aoan3h
Please let me know if you have solution.
Thanks.
Dear Livia,
Better then a screenshot is added page URL. I can not check using the screenshot why it is so wrong.
Hi!
Congratulations for the plugin!
I wanted to ask about the Google Analitics settings of the plugin, I have to turn on Track views and Prevent bounce-rate? You can explain better these functions? I would not alter my site statistics activanting wrong options.
I use Google Analytics.
Thanks!