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(); ?>

Get create account url in magento

Get create account url in magento

If you want to add create “Register” or “Create an account” link in top navigation section then simply open customer.xml file in layout folder and you have to put below code in <customer_logged_out> area

<action method=”addLink” translate=”label title” module=”customer”><label>Creat an acoount</label><url helper=”customer/getRegisterUrl”/><title>Creat an acoount</title><prepare/><urlParams/><position>9</position><liParams/><aParams>id=”register”</aParams></action>

Remove Price Display from Customs Options on Single Products in the Product View in Magento

Remove Price Display from Customs Options on Single Products in the Product View in Magento

To sort out this problem simply do below:

1) Open app/design/frontend/default/your theme/template/catalog/product/view/price_clone.phtml

2) Comment out the below code:

<?php echo $this->getPriceHtml($_product, false, ‘_clone’) ?>

like this

<? /* php echo $this->getPriceHtml($_product, false, ‘_clone’) */ ?>

Change column-layout of contact form in Magento

Change column-layout of contact form in Magento

Here is simple method to do it :

1. Find contacts.xml in the base layout folder
2. Copy the contacts.xml in your theme layout folder
app/design/frontend/default/your theme folder/layout/

and then find below code around line 41

page/2columns-right.phtml

and you can change layout as you need.