Vivamus – ligula libero nulla dolor lorem ipsum amet

4.5
100 reviews
Downloads
Version
Size

About this app

You said:

here is code please add “// Add breadcrumbs before main content add_action(‘generate_before_main_content’, ‘custom_generatepress_breadcrumbs’); function custom_generatepress_breadcrumbs() { if (!is_front_page()) { echo ‘<div class=”custom-breadcrumb”>’; echo ‘<a href=”‘ . home_url() . ‘” class=”breadcrumb-home” style=”display:inline-flex; align-items:center; gap:4px;”>’; echo ‘<svg viewBox=”0 0 24 24″ fill=”none” xmlns=”http://www.w3.org/2000/svg” stroke=”” style=”width:20px; height:20px;”><g stroke-width=”0″></g><g stroke-linecap=”round” stroke-linejoin=”round”></g><g> <path d=”M22 22L2 22″ stroke=”#000″ stroke-width=”1.5″ stroke-linecap=”round”></path> <path d=”M2 11L6.06296 7.74968M22 11L13.8741 4.49931C12.7784 3.62279 11.2216 3.62279 10.1259 4.49931L9.34398 5.12486″ stroke=”#000″ stroke-width=”1.5″ stroke-linecap=”round”></path> <path d=”M15.5 5.5V3.5C15.5 3.22386 15.7239 3 16 3H18.5C18.7761 3 19 3.22386 19 3.5V8.5″ stroke=”#000″ stroke-width=”1.5″ stroke-linecap=”round”></path> <path d=”M4 22V9.5″ stroke=”#000″ stroke-width=”1.5″ stroke-linecap=”round”></path> <path d=”M20 9.5V13.5M20 22V17.5″ stroke=”#000″ stroke-width=”1.5″ stroke-linecap=”round”></path> <path d=”M15 22V17C15 15.5858 15 14.8787 14.5607 14.4393C14.1213 14 13.4142 14 12 14C10.5858 14 9.87868 14 9.43934 14.4393M9 22V17″ stroke=”#000″ stroke-width=”1.5″ stroke-linecap=”round” stroke-linejoin=”round”></path> <path d=”M14 9.5C14 10.6046 13.1046 11.5 12 11.5C10.8954 11.5 10 10.6046 10 9.5C10 8.39543 10.8954 7.5 12 7.5C13.1046 7.5 14 8.39543 14 9.5Z” stroke=”#000″ stroke-width=”1.5″></path> </g></svg>’; echo ‘<span>Home</span></a>’; if (is_category() || is_single()) { $category = get_the_category(); if ($category) { echo ‘ &nbsp;›&nbsp; <a href=”‘ . esc_url(get_category_link($category[0]->term_id)) . ‘”>’ . esc_html($category[0]->cat_name) . ‘</a>’; } if (is_single()) { echo ‘ &nbsp;›&nbsp; <span>’ . esc_html(get_the_title()) . ‘</span>’; } } elseif (is_page()) { global $post; if ($post->post_parent) { $parent = get_post($post->post_parent); echo ‘ &nbsp;›&nbsp; <a href=”‘ . esc_url(get_permalink($parent->ID)) . ‘”>’ . esc_html(get_the_title($parent->ID)) . ‘</a>’; } echo ‘ &nbsp;›&nbsp; <span>’ . esc_html(get_the_title()) . ‘</span>’; } elseif (is_search()) { echo ‘ &nbsp;›&nbsp; <span>Search results for: “‘ . esc_html(get_search_query()) . ‘”</span>’; } elseif (is_archive()) { echo ‘ &nbsp;›&nbsp; <span>’ . esc_html(post_type_archive_title(”, false)) . ‘</span>’; } echo ‘</div>’; } }

ChatGPT said:

Here is your updated code with all replaced by » as requested:

phpCopyEdit// Add breadcrumbs before main content
add_action('generate_before_main_content', 'custom_generatepress_breadcrumbs');
function custom_generatepress_breadcrumbs() {
    if (!is_front_page()) {
        echo '<div class="custom-breadcrumb">';
        echo '<a href="' . home_url() . '" class="breadcrumb-home" style="display:inline-flex; align-items:center; gap:4px;">';
        echo '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="" style="width:20px; height:20px;"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g> <path d="M22 22L2 22" stroke="#000" stroke-width="1.5" stroke-linecap="round"></path> <path d="M2 11L6.06296 7.74968M22 11L13.8741 4.49931C12.7784 3.62279 11.2216 3.62279 10.1259 4.49931L9.34398 5.12486" stroke="#000" stroke-width="1.5" stroke-linecap="round"></path> <path d="M15.5 5.5V3.5C15.5 3.22386 15.7239 3 16 3H18.5C18.7761 3 19 3.22386 19 3.5V8.5" stroke="#000" stroke-width="1.5" stroke-linecap="round"></path> <path d="M4 22V9.5" stroke="#000" stroke-width="1.5" stroke-linecap="round"></path> <path d="M20 9.5V13.5M20 22V17.5" stroke="#000" stroke-width="1.5" stroke-linecap="round"></path> <path d="M15 22V17C15 15.5858 15 14.8787 14.5607 14.4393C14.1213 14 13.4142 14 12 14C10.5858 14 9.87868 14 9.43934 14.4393M9 22V17" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> <path d="M14 9.5C14 10.6046 13.1046 11.5 12 11.5C10.8954 11.5 10 10.6046 10 9.5C10 8.39543 10.8954 7.5 12 7.5C13.1046 7.5 14 8.39543 14 9.5Z" stroke="#000" stroke-width="1.5"></path> </g></svg>';
        echo '<span>Home</span></a>';

        if (is_category() || is_single()) {
            $category = get_the_category();
            if ($category) {
                echo ' &nbsp;»&nbsp; <a href="' . esc_url(get_category_link($category[0]->term_id)) . '">' . esc_html($category[0]->cat_name) . '</a>';
            }
            if (is_single()) {
                echo ' &nbsp;»&nbsp; <span>' . esc_html(get_the_title()) . '</span>';
            }
        } elseif (is_page()) {
            global $post;
            if ($post->post_parent) {
                $parent = get_post($post->post_parent);
                echo ' &nbsp;»&nbsp; <a href="' . esc_url(get_permalink($parent->ID)) . '">' . esc_html(get_the_title($parent->ID)) . '</a>';
            }
            echo ' &nbsp;»&nbsp; <span>' . esc_html(get_the_title()) . '</span>';
        } elseif (is_search()) {
            echo ' &nbsp;»&nbsp; <span>Search results for: "' . esc_html(get_search_query()) . '"</span>';
        } elseif (is_archive()) {
            echo ' &nbsp;»&nbsp; <span>' . esc_html(post_type_archive_title('', false)) . '</span>';
        }
        echo '</div>';
    }
}

This change only affects the separator. Let me know if you’d like to customize the spacing, style, or animation as well.

You said:

now i want to bold the txt just give the code

ChatGPT said:

To make the breadcrumb text bold, add this CSS:

cssCopyEdit.custom-breadcrumb {
    font-weight: bold;
}

You can place it in Appearance > Customize > Additional CSS or your child theme’s stylesheet.

You said:

thats awesome now i have a site side bar i want to make my side bar sticky when scoll post is larger not every time

ChatGPT said:

To make your sidebar sticky only when the post content is taller than the sidebar, you can use a combination of CSS and a small JavaScript snippet. Here’s how to do it properly:


Step 1: Add CSS

This CSS makes the sidebar ready for sticky behavior:

cssCopyEdit/* Sidebar sticky base */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* adjust for your header height */
}

Step 2: Add Class to Sidebar

Make sure your sidebar has the class sticky-sidebar. If you’re using GeneratePress, go to:

Appearance > Widgets > Sidebar
Then inspect your theme or manually add the class via functions.php using a filter, or directly in your sidebar.php like this:

phpCopyEdit<aside id="secondary" class="widget-area sticky-sidebar">

Step 3: Add JavaScript

This script ensures the sidebar is only sticky when post is longer:

htmlCopyEdit<script>
document.addEventListener('DOMContentLoaded', function () {
    const sidebar = document.querySelector('.sticky-sidebar');
    const mainContent = document.querySelector('main');

    if (sidebar && mainContent) {
        const sidebarHeight = sidebar.offsetHeight;
        const contentHeight = mainContent.offsetHeight;

        if (contentHeight > sidebarHeight + 100) {
            sidebar.classList.add('sticky-sidebar');
        } else {
            sidebar.classList.remove('sticky-sidebar');
        }
    }
});
</script>

👉 Add this code in Appearance > Customize > Additional JS, or enqueue it via your functions.php.


Let me know if you’re using a page builder or want this for a specific page/post type — I can adjust the code accordingly.

You said:

like this page side bar behavior please read “https://entertainment.wplite.in/joseon-attorney-hindi-dubbed-complete-drama/

ChatGPT said:

To replicate the exact sidebar behavior you observed on the entertainment.wplite.in post page—where the sidebar becomes sticky only if the post content is taller than the sidebar—follow this modern, efficient solution using GeneratePress and simple CSS/JavaScript:


🧩 Method: CSS + Minimal JavaScript Check

This method ensures the sidebar sticks only when the post content is long enough.


✅ Step 1: Identify the Sidebar Element

Inspect your theme layout (use browser developer tools) to find the CSS selector for your sidebar. Common IDs/classes in GeneratePress may be:

  • #right-sidebar
  • .inside-right-sidebar
  • .sidebar-area

For this guide, let’s assume your sidebar uses #right-sidebar.


✅ Step 2: CSS for Sticky Behavior

Add this CSS to Appearance → Customize → Additional CSS or your child theme’s style.css:

cssCopyEdit@media (min-width: 769px) {
  body.single-post #right-sidebar.sticky-enabled {
    position: sticky;
    position: -webkit-sticky;
    top: 20px; /* adjust as needed for header height */
  }
}

✅ Step 3: JavaScript to Add the Sticky Class Conditionally

Enqueue this script in your child theme or hook it inline via functions.php:

phpCopyEditadd_action('wp_footer', function(){
    if (is_single()) {
        ?>
        <script>
        document.addEventListener('DOMContentLoaded', function(){
            var sidebar = document.querySelector('#right-sidebar');
            var content = document.querySelector('.site-content'); // or main content container
            if (sidebar && content) {
                if (content.offsetHeight > sidebar.offsetHeight + 40) {
                    sidebar.classList.add('sticky-enabled');
                }
            }
        });
        </script>
        <?php
    }
});

✅ Replace #right-sidebar and .site-content with your actual selectors.


✅ Why It Works Like the WPLite Site

  • CSS position: sticky ensures the sidebar sticks within the viewport only when conditions are met.
  • JavaScript checks if content height exceeds sidebar height before enabling the sticky class—preventing awkward scrolling or wasted space. This matches behavior seen on the entertainment link discussed. bloggingidol.com

✔️ Summary

  1. Add the conditional CSS for sticky behavior.
  2. Use JavaScript to add the sticky class only when content is longer than the sidebar.
  3. The sidebar becomes sticky in longer posts like on the example site, and remains static on shorter content.

Would you like help adapting this to your actual HTML structure or improving top-offset spacing? Just share your sidebar selector and I’ll tailor the code.

Sources

You said:

just is class ko sticky krna hy class=”gb-element-2aabf770″

ChatGPT said:

To make the element with class .gb-element-2aabf770 sticky only when the content is taller, follow this:


✅ Step 1: Add CSS

cssCopyEdit@media (min-width: 769px) {
  .gb-element-2aabf770.sticky-enabled {
    position: sticky;
    top: 20px; /* adjust based on your header height */
  }
}

✅ Step 2: Add JavaScript (in footer or via functions.php)

phpCopyEditadd_action('wp_footer', function(){
    if (is_single()) {
        ?>
        <script>
        document.addEventListener('DOMContentLoaded', function(){
            const stickyBox = document.querySelector('.gb-element-2aabf770');
            const content = document.querySelector('.site-content'); // Replace with your main content container if different
            if (stickyBox && content) {
                if (content.offsetHeight > stickyBox.offsetHeight + 40) {
                    stickyBox.classList.add('sticky-enabled');
                }
            }
        });
        </script>
        <?php
    }
});

Important:

  • Ensure .site-content correctly targets your main content container.
  • Adjust top: 20px; in CSS as needed to avoid overlapping your header.

Let me know if you’re using a different layout or want the sticky effect on all pages.Tools

ChatGPT can make mist

Updated on
August 7, 2026

App Info

App Name Vivamus – ligula libero nulla dolor lorem ipsum amet
Package Name N/A
Category Finance
Version
Minimum OS Android 5.0+
Size
Downloads
Updated on August 7, 2026
Ratings
4.5 ★ / 5 (100 reviews)

Legal Copyright Disclaimer: As has been noted, streaming copyrighted content is unlawful and could get you into legal trouble. On account of this, we do not condone the streaming of copyrighted content. Therefore, check your local laws for streaming content online before doing so. Consequently, the information on this website is for general information and educational purposes only. 

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 10 = ?