Frontend Essential npm Commands

Needed packages 1. Initialize Project 2. Bootstrap 3. Fontawesome 4. Autoprefixer What is Autoprefixer Autoprefixer is a CSS post-processor. It combs through compiled CSS files to add or remove vendor prefixes like -webkit and -moz after checking the code against caniuse.com. The data on caniuse.com is the most accurate data source on browser support on […]

How To remove a commit on GitHub?

1 – Copy the commit reference you like to go back to from the log: git log 2 – Reset git to the commit reference: git reset 3 – Stash/store the local changes from the wrong commit to use later after pushing to remote: git stash 4 – Push the changes to remote repository, (-f […]

Reverse Search Based On ACF Relationship Field

The scenario: Two custom post types: Event & Sponsor. Now every Event has multiple Sponsors…Which was set up by the ACF relation field for the Event Page. Now we have Single Sponsor Pages too. All we want to do is show all events that were sponsored by our SPONSOR on the single sponsor page. #Method […]