Elegant way of adding an CTA to a menu

As posted in StackOverflow by Oliver White: You can add this item as last in your menu, then assign custom class to this item and add required styles (positioning, CTA styles).

What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]

You can create Parallax effect for header using pure CSS as well as jQuery. The difference between them is the loading time. CSS will load much faster than jQuery. Implementing a feature will depend on the developer/owner of the theme how they want the feature to be. My preference is that you use pure CSS … Read more

Pagination 404 on my index.php

The reasons why you should not run query_posts() are perfectly outlined in this answer. Long story short: You overwrite the default query (that happens by WP core) and replace everything that was valid for this request with data that only matches for your secondary query. The function get_query_var() relies on the global $wp_query that gets … Read more

How to override email text New Customer Order?

The easiest way to override the WooCommerce emails is to copy woocommerce/templates/emails/admin-new-order.php to yourtheme/woocommerce/emails/admin-new-order.php and make any changes in your version of the template. This will ensure that any changes you make do not get lost during any subsequent upgrades. The text displayed in the subject line of the email is controlled via the GUI … Read more

Multi site root site installed on subdomain, with child sites as subdirectories

It’s likely because your authentication cookie is set to dev.example.com/site1/ when you login to site1, and naturally the browser won’t pass that cookie for site2. What you can try and do is play around with the SITECOOKIEPATH and ADMIN_COOKIE_PATH, which by default are set as follows: SITECOOKIEPATH to get_option(‘siteurl’) ADMIN_COOKIE_PATH as SITECOOKIEPATH . ‘wp-admin’ So … Read more

ugly URLs appear as 404 in GWT

There is no process of “change” to it really. Ugly URLs always work. Pretty permalinks just add a nice looking cover on top of them and internally turn the pretty version into an set of query arguments same as ugly version. Most likely it is just taking a while for Google index to catch up. … Read more

database search feature

If you want to use WordPress you can download a custom post type plugin (such as Custom Post Type UI), create your Book post type; another plugin to generate your form for adding books (Gravity Forms + this looks good, or a similar solution, or create a form by hand). Then tweak the default WordPress … Read more

Child Plugin Admin Panel

I’m assuming you’re asking how to remove the first action, which the plugin has created? Removing an action is really easy – all you need to do is call remove_action like this: remove_action(“admin_init”, “backend_plugin_css_scripts_mail_bank”); Then add your replacement action. You need to ensure that you remove the action after it has been added (because otherwise … Read more

foreach all the post

Your code has many errors:- $thumbs isn’t used anywhere. $img_url = $thumb[‘url’]; undefined variable if(is_array($thumb) && $img_url) always false because of second point. $search_data = []; should be outside of loop. Check the correct part of code $search_data = []; if($query->have_posts()): while($query->have_posts()): $query->the_post(); $img_url = get_the_post_thumbnail_url(); if(!empty($img_url)){ $search_data[] = array( ‘name’ => get_the_title(), ‘thumb’ => … Read more