thewirelessguy / cornerstone

Cornerstone is a WordPress starter theme based on the Zurb Foundation Responsive Framework. Cornerstone aims to provide a lightweight starter theme that is responsive and SEO friendly that web designers can build great looking websites on.
GNU General Public License v2.0
155 stars 40 forks source link

Is your orbit alt empty ? #3

Closed apsolut closed 8 years ago

apsolut commented 11 years ago

I have empty alt, image is featured, with all text caption, alt, title filled.. but i cant get output of alt and title..

I did find solution for my project

$orbtitle = get_the_title(); and echo '<img src="'. $orbitimage['0'] . '" alt="' . $orbtitle . '" title="'. $orbtitle . '" />';

alana-mullen commented 11 years ago

I've updated the function to include the alt text. I've not added the title tag as I don't see any use for it other than as a tooltip when hovering over the image and the alt tag deals with accessibility issues. It's SEO value is only when used with a link to describe the link. I'm open to persuasion though.

DesignMitZweiS commented 11 years ago

Excellent job on the orbit feature! I just found out how to use it and I'm totally in love with it. Here's what it looks like on my site: http://design-mit-zwei-s.de

Could you please tell me how I can alter the speed and the options for the orbit?

alana-mullen commented 11 years ago

Look for jQuery(document).foundation(); in footer.php and edit to add any options you wish to use eg: jQuery(document).foundation('orbit', { timer_speed: 10000 }); A list of options for Orbit can be found at http://foundation.zurb.com/docs/components/orbit.html Note that this theme uses jQuery(document) instead of $(document) for compatibility with the jQuery that comes with WordPress.

DesignMitZweiS commented 11 years ago

Ok thanks, that's fine. I know how to use it and I already had to use jQuery in my footer. Figured your little 'hack' out.

DesignMitZweiS commented 11 years ago

I've tried your suggested approach for the orbit functions. Unfortunately, it breaks all foundation javascript functions :-/

jQuery(document).foundation('orbit', {
timer_speed: 10000
});

After implementing this,my top-bar menu is broken and without functionality.For eg. the menu-button on small devices and the dropdowns don't work anymore. Orbit itself is working.

It might have something to do that you're calling jQuery and not $.

Edit: I've tried another way, seems to work so far. I just don't know if it breaks somethings else:

jQuery(document).foundation('topbar');

jQuery(document).foundation('orbit', {
    timer_speed: 10000
});
DesignMitZweiS commented 11 years ago

Update: I tried to use Section - http://foundation.zurb.com/docs/components/section.html It doesn't work as long as i have the orbit function active ... I'm pretty clueless how to do it right. I guess I'll leave the orbit speed_timer alone for now.