Top 10 Contact Form Plugins

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc imperdiet rhoncus arcu non aliquet. Sed tempor mauris a purus porttitor, ac convallis arcu venenatis. Donec lorem erat, ornare in augue at, pharetra cursus mauris. Cras commodo orci vel scelerisque convallis. Fusce sollicitudin feugiat placerat. Aenean magna massa, vehicula at efficitur ac, vestibulum non felis. Aliquam … Read more

3 Awesome Security Plugins for WordPress

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc imperdiet rhoncus arcu non aliquet. Sed tempor mauris a purus porttitor, ac convallis arcu venenatis. Donec lorem erat, ornare in augue at, pharetra cursus mauris. Cras commodo orci vel scelerisque convallis. Fusce sollicitudin feugiat placerat. Aenean magna massa, vehicula at efficitur ac, vestibulum non felis. Aliquam … Read more

// JavaScript for search functionality document.addEventListener('DOMContentLoaded', function () { const searchInput = document.getElementById('searchInput'); // Event listener for search input searchInput.addEventListener('input', function () { const searchQuery = searchInput.value.toLowerCase(); const posts = document.querySelectorAll('.post'); // Loop through each post posts.forEach(function (post) { const postTitle = post.querySelector('h2').textContent.toLowerCase(); const postContent = post.querySelector('p').textContent.toLowerCase(); // If search query is found in post title or content, display the post, otherwise hide it if (postTitle.includes(searchQuery) || postContent.includes(searchQuery)) { post.style.display = 'block'; } else { post.style.display = 'none'; } }); }); });