YellowWebMonkey Web Design

Dev Blog

gantry-new.png

Make dropdown menu items wrap text in Gantry 5

If you have dropdown items that have text hanging off the side like the image below: Add this code to /custom/scss/custom.scss .g-main-nav .g-toplevel > li > .g-menu-item-container, .g-main-nav .g-sublevel > li > .g-menu-item-container {whitespace:normal;}

Fixing open_basedir in Joomla

Many security tools and blogs suggest setting the open_basedir in the php.ini file.  The open_basedir directive “Limits the files that can be accessed by PHP to the specified directory-tree, including the file itself. … When the file is outside the specified directory-tree, PHP will refuse to access it.” *   However, it can often trigger the error: JFolder::create: Path not in open_basedir paths   In order to solve this, you have three options: 1. Disable …

Fixing open_basedir in Joomla Read More »

Wrong breadcrumbs in Joomla content

If you have ever had your site’s breadcrumbs show totally random entries that have nothing to do with the page you are looking at, this can be a cache issue.  Go to Module Manager and open your Breadcrumbs module (mod_breadcrumb).  On the Advanced tab, change Caching to “No Caching”

Remove duplicates from breadcrumbs in Joomla content

This is a common scenario:  Your single articles show a duplicate breadcrumb when the article doesn’t have an associated menu item.  Typically the first one is the menu item for the category blog menu item that the article would fall under.  The second is the category itself.   The reason this happens is that the conditional statement in the template for mod_breadcrumbs checks to see if the LINK of the previous breadcrumb is the same …

Remove duplicates from breadcrumbs in Joomla content Read More »

Removing the Temporary Url ~username out of Your Link after Going Live

Ever used a temporary URL with your IP address like http://xxx.xxx.xxx.xxx/~username when building your site but then had the pesky /~username/ stay in the link after going live?  An example would be looking like http://www.mysite.com/~username/contact-us.  Here are some things to check to fix this:   1. Hard-coded links Check your database to see if you put the /~username/ in your actual links. The quickest way if you are comfortable is to go to phpMyAdmin, select your database and …

Removing the Temporary Url ~username out of Your Link after Going Live Read More »

Hiding MijoShop sections on Category view using CSS

Sometimes you want to hide sections or images in Mijoshop without using an extension.  Here are some fields.  I will add as I use others in sites:   Category Title .mijoshop.common-home h3:first-of-type {display:none;}   Category Image .mijoshop.common-home h2 + div {display:none;}   Sub Category Images .mijoshop .miwi-categoryhome div:first-of-type {display:none;}

Hiding Opencart/MijoShop Fields using CSS

Sometimes you want to hide checkout fields or shopping fields in OpenCart/Mijoshop without using an extension.  Here are some fields.  I will add as I use others in sites:   Card Issue Number #payment .form-group:nth-of-type(6) {display:none;}   Extra Expiration Date #payment .form-group:nth-of-type(3) {display:none;}

Change URL from old folder to new folder

This is when you need to change everything (all content) from an old folder to a new one.  This is different than redirecting just the exact match of the folder.  I had to use this when changing a menu alias to something new and fix all the indexed pages with one line instead of a ton of individual redirects. RedirectMatch 301 ^/folder-old(.*)$ /folder-new$1

Scroll to Top