Web Development & WordPress

Olsen Theme Customization Guide (CSSIgniter) – CSS Tweaks for Header, Sidebar & Fonts

Olsen by cssignitor

 Olsen is a stylish blogging theme WordPress  created By CSSIgniter . You can check the  Olsen theme demo . If you are using WordPress.com  premium plan you can use this theme. It features a focused layout with crisp fonts, providing a fluid and relaxing reading experience. Its minimal design and unobtrusive color palette make it ideal for lifestyle and fashion bloggers who need their images to pop next to their content.

Here i am sharing css code to style your Olsen theme.  So You can use my shared code and ask question in the comments section.

Continue reading “Olsen Theme Customization Guide (CSSIgniter) – CSS Tweaks for Header, Sidebar & Fonts”

Web Development & WordPress

WordPress PHP 8.3 Fix: Jetimpex Dashboard & TM Photo Gallery Updated Versions

When I updated my WordPress site to PHP 8.3, both the Jetimpex Dashboard (tm-dashboard) and TM Photo Gallery (tm-photo-gallery) plugins caused fatal errors, breaking the site.

After debugging, I identified compatibility issues with deprecated PHP functions and syntax changes introduced in PHP 8.3.

Continue reading “WordPress PHP 8.3 Fix: Jetimpex Dashboard & TM Photo Gallery Updated Versions”
Life Thoughts & Personal Notes

He Asked How to Make His People Happy — The Sage’s Answer Changed Everything

Essence of Bhagavad Gita and True Happiness
Essence of Bhagavad Gita and True Happiness

King Vivekvardhan had only one wish — that his people should always live in peace and happiness. Yet he often wondered: how could he truly make his subjects happy? To find the answer, he summoned his wise ministers and advisors.

Continue reading “He Asked How to Make His People Happy — The Sage’s Answer Changed Everything”
Web Development & WordPress

Remove duplicate images with same name and url but different ids from wordpress media library

Add the code below to your theme’s functions.php or use Code Snippet Plugins. Then Go to Tools > Duplicate Media in your WordPress admin, Click “Find Duplicates” to see what would be affected. Backup your Site and Media first, then click “Remove Duplicates”

Continue reading “Remove duplicate images with same name and url but different ids from wordpress media library”
Vedic Astrology Insights

Taurus Ascendant in Vedic Astrology – Traits, Karma, and Life Observations

Note: This article is for educational and research purposes in Vedic astrology. It does not offer medical or personal advice.

At first I want to give my respect towards my Guru who is guiding us for betterment in life and to make our karma pure. In my learning of Astrology here I am sharing about some of my understanding regarding Taurus Ascendant or Lagna.

Continue reading “Taurus Ascendant in Vedic Astrology – Traits, Karma, and Life Observations”
Web Development & WordPress

Check if it is mobile then show something : wordpress template php code

For coders sometimes it is needed to show something only for mobile in template fiile. So here is the coding

for functions.php file

function is_mobile_device() {
    $user_agent = $_SERVER['HTTP_USER_AGENT'] ?? '';
    $mobile_agents = ['Android', 'iPhone', 'iPad', 'iPod', 'Windows Phone', 'BlackBerry'];
    
    foreach ($mobile_agents as $agent) {
        if (stripos($user_agent, $agent) !== false) {
            return true;
        }
    }
    return false;
}

in template file ( like single.php, page.php etc)

 <?php
 
  $is_mobileb = wp_is_mobile() || is_mobile_device();
  if( $is_mobileb){ 
    
?> 
YOUR CODE WILL GO HERE 

<?php } ?>
Web Development & WordPress

WordPress Shortcode to Show Different Images for Desktop & Mobile

Basically client was asking to show different image in desktop view and mobile view. So the idea which hits in my mind to create a shortcode which will check if client is visiting the site from mobile or from desktop/laptop and return the image based on it

So the shortcode need to be used in the following way, put it in the img html tag where u want to show the different image

Continue reading “WordPress Shortcode to Show Different Images for Desktop & Mobile”