Latest Articles
Our latest news updates and insightful blog posts, designed to empower you with the knowledge and strategies you need to succeed.
Cache exclusion in Drupal - Disable cache for certain pages or template
These below code you can put on your template pages, you can apply condition according to requirement so so caching will exclude for those pages where apply this code.
$GLOBALS['conf']['cache'] = FALSE; $GLOBALS['do_not_cache'] = 1;
We can use CacheExclude module to manage caching for perticular page or condition https://www.drupal.org/project/cacheexclude
Assigning a Role to Customers in Drupal Commerce (Drupal 10)
- Open the Configuration Page
Navigate to:
👉 Admin Panel → Configuration
Or directly visit:/admin/config
Access Profile Types
- Click…
Apply coupon to Regular Price in Woocommerce
When we apply coupon for discount its applied for sale price by default but we need to apply discount coupon on regular price so you can use this code on function.php By default cart and product show sale price after applying this code Regular price will be update on cart.
add_action( 'woocommerce_before_calculate_totals', 'add_custom_price', 10, 1); function add_custom_price( $cart_object) { global $woocommerce; if ( is_admin() && ! defined( 'DOING_AJAX' ) )…
Add External CSS in Drupal 8
How can add externalcss in Drupal 8 ?
Post following format in libraries.yml, for example my theme name is customtheme so the file will be 'customtheme.libraries.yml' in theme folder
css: theme: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css': { type: external, minified: true } 'https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap': { type: external, minified: true }…
Boost Rankings, Traffic, and Dominate Search
In the fast-paced world of online news, getting noticed amidst the sea of content can be a daunting task. However, with the right strategies in place, news publishers can optimize their content to rank higher in search engine results, drive more traffic to their websites, and ultimately establish authority in their respective niches. This guide explores the key tactics for mastering News SEO and achieving digital dominance.
Understanding the Importance of News SEO
News SEO refer…
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more rec…