You could “borrow” the html form from the example and include this in your template – either directly of via a filter like wp_footer:
<form method="GET" action="/javascript/search-highlight/" onsubmit="myHilitor.apply(hilite.value); return false;">
<fieldset>
<legend>Highlight Words</legend>
<label>Keywords</label><span><input type="text" size="32" name="hilite" value="search engine keywords">
<input type="submit" value="Apply">
<input type="button" value="Remove" onclick="myHilitor.remove();"></span>
</fieldset>
</form>
Related Posts:
- How to pass values from one function to the other using an array variable
- separate list of programs in html/javascript coming from php
- How do I integrate vanilla Javascript to a wordpress website?
- How to use wp_ajax_set_post_thumbnail?
- Passing a value from an input field to a php function in WordPress?
- Hide Approved status for certain users in users list
- Trying to add some custom text into WordPress Post title via function.php
- How do I disable cache for a certain page?
- How To Get HTML Eelement From Another Page
- Ajax search box displays nothing if taxonomy doesn’t exist
- Display one random image from Media Library
- Conditional Banners
- ACF values to Script with auto refresh
- Update $wpdb query with AJAX
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- I have a lot of JavaScript erorrs after SSL someone can help me?
- $.ajax results in 403 forbidden
- WordPress Slider is not working
- How can i show specific Category List?
- Using Javascript On Page – Header and Footer Now Missing
- Store data from JavaScript object to custom table in user account
- register dependency css and js inside a plugin class
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- AJAX to add to cart multiple products woocommerce
- gettint error 400 with AJAX
- Using wp_editor() when not logged stopped working
- Modifying child theme’s header
- Adding extra data to shortcode attributes and pass it to JS with wp_localize_script
- Show the subcategory name based on current product
- Show subcategory name selected in specific category woocoommerce
- Javascript / PHP – closing the loop
- Filter portforlio with librairie isotop
- I can’t load my images from a js file using wp_localize_script
- Javascript Tab Gallery with Advanced Custom Fields
- How to output values from a loop into a javascript array
- Pulling Products from an API
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Replacing entire tag with shortcode – JavaScript [duplicate]
- wordpress dependent dropdownlist using post type is not working
- Move Jquery.js to Footer
- Bring Font Awesome icons inside menu A tags
- Filtering markers on google map by WordPress category[SOLVED]
- How do I make comment-reply-button with that takes to comment reply form on click
- Call jQuery function from PHP?
- custom post type column countdown
- How to echo a PHP code into WooCommerce variation product?
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- How to call a function from functions.php with ajax?
- ajax polling with admin-ajax.php
- Pass product object to javscript
- admin-ajax.php 400 bad request – whats wrong with my code?
- Custom Post type Ajax search results
- WordPress load javascript file if something… (after the page is loaded)
- include javascript Multiple files in wordpress through script.js
- Automatically refresh page if widget is added to page?
- wordpress all post filter by year
- number of posts with “Load More”
- Serve cookie free URLs in WordPress without using a CDN
- Call custom JS function from PHP
- Ajax wordpress function showing source code in alert and not value of input field?
- Generate a radius search of custom post type locations
- custom field – changing an element or background of id div – different versions not working
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Target a specific container to style on WordPress storefront theme
- Full search and replace isn’t enough to make all pictures to be loaded with https
- Complex PHP for json_encode > how to handle/output right?
- I want url from a file in media using title file
- scroll scrpit to particular button position to next id when click button
- How to load WP_Editor JS files manually (with AJAX)?
- How to add text before posts
- make an array in wordpress cusmization api?
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Force ‘permanent’ post cache of shortcode results
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- How can i iterate through this shortcode array?
- Find the method which AJAX GET calls
- A javascript function that simply runs a php function on the plugin
- Display text of price (minus 20%) on every product page in a sentence.
- Populate an array from the loop, and then read the array into JS
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- How to create a radio button to alt between settings in wp_options table
- Retrieve $_POST data to send to javascript without using localize script
- Where to find the html for WordPress site? [closed]
- customizer live preview layout picker
- Why isn’t my custom Javascript showing up in my custom template?
- Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?
- I need help implement a Javascript code into the PHP file
- Add a downloaded JS file to WordPress
- How to use Amazon Elastic Transcoder from WordPress using AWS SDK for PHP?
- Slider from different widgets
- How to call javascript function (jquery) in a shortcode?
- Plugin PHP write permissions
- Admin bar nodes
- Querying latitude and longitude into google maps correctly
- 500 (Internal Server Error) of external php file
- Add title and caption to thumbnail image on mouseover
- How can I correctly POST to a WordPress page?