Entry with Audio

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.

Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer.

  • Donec posuere vulputate arcu.
  • Phasellus accumsan cursus velit.
  • Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
  • Sed aliquam, nisi quis porttitor congue

Read more

How to check home using php in magento

How to check home using php in magento.

<?php $is_homepage = Mage::getBlockSingleton(‘page/html_header’)—>getIsHomePage();
if($is_homepage) { ?>

You are in home page!!

<?php } ?>

Display product list on home page in magento

Display product list on home page in magento

To display a product list on the home page in Magento, you can use widgets, layout XML updates, or modify CMS blocks.

One of the simplest methods is to use the Catalog Products List widget.

Navigate to Content > Pages, edit the Home Page, and add the widget to the content section.

Configure it to display specific products or dynamic collections based on categories, bestsellers, or new arrivals. Alternatively, you can customize the homepage layout using XML updates in layout files (home.xml or cms_index_index.xml).

If you need more flexibility, a custom block or module can be created to fetch and display products dynamically using Magento’s \Magento\Catalog\Model\ProductRepository and \Magento\Catalog\Block\Product\ListProduct classes.

Entry without preview image

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.

  1. Nulla consequat massa quis enim.
  2. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.
  3. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.

Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.

Read more

jQuery Sticky Navigation Effect

To create a sticky effect on the main navigation bar above when a user scrolls passed beyond it. Use below jquery code

jQuery(function(){
var menuOffset = jQuery(‘#site-navigation’)[0].offsetTop;
jQuery(document).bind(‘ready scroll’,function() {
var docScroll = jQuery(document).scrollTop();
if(docScroll >= menuOffset) {
jQuery(‘#site-navigation’).addClass(‘fixed’).css(‘width’,jQuery(‘#masthead’).width());
} else {
jQuery(‘#site-navigation’).removeClass(‘fixed’).removeAttr(“width”);
}
});
});

Fairly basic jQuery code. It will add a class to the navigation when a user scrolls beyond it. Only thing you’ll need to change here is the navigation selector, #site-navigation. Also, you may want to remove .css(‘width’,jQuery(‘#masthead’).width()). That part of the code is more specific to this site.

and include below css code in css file

#site-navigation.fixed{
position:fixed;
z-index: 9999;
top:0;
}

That’s done!!

Entry with Post Format “Video”

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.

Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.

 

Read more

htaccess for magento in subdirectory

htaccess for magento in subdirectory

Steps
1. Install Magento to /public_html/magento/ normally. Do not change Base URL during installation.
2. Copy /public_html/magento/.htaccess to /public_html/.htaccess
3. Copy /public_html/magento/index.php to /public_html/index.php
4. Edit /public_html/index.php line 32 to read:
$mageFilename = ‘magento/app/Mage.php’;
5. Log into Magento Admin. Go to System > Configuration > Web
6. Under Unsecure change Base Link URL to http://domain.com/

Now you finished!! But if you unable to load magento connect
system->magento connect->magento connect manager

then you need to add your ‘subfolder’ after ‘YourDomain.com’ in the address bar, after you select Magento Connect Manager from the dashboard.

http://www.YOURDOMAIN.COM/SUBFOLDER/downloader/

Reset wordpress default jquery for front site

Reset wordpress default jquery for front site. Use below code in template functions.php file and you’r done!

if( !is_admin()){
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”), false, ‘1.10.2’);
wp_enqueue_script(‘jquery’);
}

How To Show Page for Particular User Group In Magento

Show Page for Particular User Group In Magento

To show a page for a specific user group in Magento, you need to implement customer group restrictions using layout updates or custom modules.

One effective way is by leveraging Magento’s customer session and layout XML updates. First, identify the customer group using Magento\Customer\Model\Session and apply conditions in your layout XML or CMS page settings.

You can also use Magento ACL (Access Control List) or third-party extensions for more flexibility. For a custom approach, create an observer or a plugin to restrict access based on customer groups and redirect unauthorized users.

This ensures personalized content delivery while maintaining security and user experience.

Get current category ID on category page in magento

Get current category ID and name on category page in magento.

We used this code :

<?php echo Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getName(); ?>
<?php echo Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getId(); ?>