Here is an example to append options to a select tag from an API response in jquery foreach This can be also done by foreach on php but sometimes we may need js or jquery to append data upon some conditions.
Category: Wordpress
How to do these follwing things using CSS
How to change the dropdown arrow icon of select box using background image in css? 2. How to change the placeholder color in firefox browser? 3. How to reduce the column width(which is display flex column) in css?
How to export WordPress posts to Microsoft Excel
First, navigate to Tools › Export and choose the type of data that you want to export. Data is divided into various article types by WordPress, including posts, pages, WooCommerce products, and real estate properties. By choosing it here, you can export any custom post category or taxonomy. Go to Microsoft Excel > Blank Workbook… Continue reading How to export WordPress posts to Microsoft Excel
Add animation to a html content in JavaScript
Some times situation may arise where we have to add animation to HTML contents using JavaScript. One situation is that if we have to change the display property of content to block and none ,we have to write script to it. What we will do if we need to add an animation while having change… Continue reading Add animation to a html content in JavaScript
Change the display block : none to block and vice versa.
While designing a web page especially the header it is important to know to change the content to none to block and vice versa by using Java Script. It will be very helpful when we develop a responsive NavBar. The java script code used for this is as follows:- function toggleFunction() { … Continue reading Change the display block : none to block and vice versa.
Add SVG images to the WordPress Media
WordPress support a number of image file types including .jpg, .jpeg, .png, and .gif . But it does not support SVG file format images to upload into the WordPress media by default . So what if we need to upload the SVG images into the WordPress. For this what we have to do is to add a PHP… Continue reading Add SVG images to the WordPress Media
How to Enforce One Category Per Post in WordPress
The ‘Select All Categories and Taxonomies‘ plugin is the simplest way to limit users and authors to a specific category. Users can add several categories to a post by checking the category’s box by default. The default category checkboxes are replaced with radio buttons by this WordPress plugin. First, you’ll need to install and activate the Select All Categories and Taxonomies plugin. After activation, navigate to Settings » Moove taxonomy buttons. Then, in the ‘Category’ dropdown, select ‘Radio button.’
How to Renew Godaddy SSL Certificate on a Google Cloud Apache Server
Log in to your GoDaddy account and navigate to your SSL certificates. Find the SSL certificate that you want to renew and click on the “Renew” button. Download the new certificate files and choose the server type as “Apache“ Connect to your Google Cloud Apache server using SSH. Upload the new certificate and replace files… Continue reading How to Renew Godaddy SSL Certificate on a Google Cloud Apache Server
Position an element in the center of container
One of the common scenario in a webpage development is to display an element at the center of a page or within an element which act as its container.We can use the CSS Flexbox property to center an element horizontally, vertically, and at the center of a page/container. Following code written in the conatiner’s style,… Continue reading Position an element in the center of container
Change the color of the Png image to black in hover.
The color of the image that is inside a parent div can be changed into black using some CSS codes. The icon images has to change to black while hovering on the parent div. So we have to call the total div in CSS and make it hover Then call the div along with the… Continue reading Change the color of the Png image to black in hover.