Please see the instructions below for how to change a hard coded link
Paste this into the javascript file to change a hardcoded link in a div, on a template.
Ext.onReady(function(){
if(Ext.get('appointment')){
Ext.get('appointment').first().replaceWith({tag: 'a', href: '/monthly-feature.html', html: 'MONTHLY FEATURES' });
}
});
To open the link in a new window, add the target:’_blank’ tag. Example below:
Ext.onReady(function(){
if(Ext.get('btn_forms')){
Ext.get('btn_forms').first().replaceWith({tag: 'a', href: '/monthly-feature.html', html: 'Monthly Feature', target: '_blank' });
}
});
To target a specific tag within a div use the following format:
Ext.onReady(function(){
if(Ext.get(Ext.query('#appointment a'))){
Ext.get(Ext.query('#appointment a')).replaceWith({tag: 'a', href: '/patients.html#map', html: 'DIRECTIONS' });
}
});
Monday
8:00 am - 6:00 pm
Tuesday
8:00 am - 6:00 pm
Wednesday
8:00 am - 6:00 pm
Thursday
8:00 am - 6:00 pm
Friday
8:00 am - 6:00 pm
Saturday
Closed
Sunday
Closed