Forum Replies Created
-
AuthorPosts
-
January 22, 2016 at 2:30 pm in reply to: Some featured images in is Portfolio not showing propperly #570069
Yea that seems to fix it. But what could be the underlying cause? It was working fine before.
January 20, 2016 at 12:50 pm in reply to: Some featured images in is Portfolio not showing propperly #568570Thanks :)
In case anyone is also interested in outputting the tags in the classes of the DIV, here is my code for protected function sort_cat_string($the_id, $params) in portfolio.php
protected function sort_cat_string($the_id, $params) { $sort_classes = ""; $item_categories = get_the_terms( $the_id, $params['taxonomy']); $item_tags = get_the_tags($the_id); if(is_object($item_categories) || is_array($item_categories)) { foreach ($item_categories as $cat) { //fix for cyrillic, etc. characters - isotope does not support the % char $cat->slug = str_replace('%', '', $cat->slug); $sort_classes .= $cat->slug.'_sort '; } } //Output tags too if(is_object($item_tags) || is_array($item_tags)){ foreach ($item_tags as $cat) { //fix for cyrillic, etc. characters - isotope does not support the % char $cat->slug = str_replace('%', '', $cat->slug); $sort_classes .= $cat->slug.'_tag_sort '; } } //New code end return $sort_classes; }
For isotope functions, use regular isotope methods on .isotope and .isotope_activated
$('.isotope').isotope({filter: "." + search_term + "_sort"});
I’ve figured out the is_single() part so now single posts of certain categories redirect to the homepage, but I’m still curious as to whether I need <meta name=”robots” content=”noindex”> at all and if it would be good or not for my SEO to do so.
One more question, I’ve got most of what I want now, but is there a way to output the WP tags in the portfolio entries into the class property of the divs that are the portfolio entries (isotope-item)?
Thanks again,
TeeraThanks, that’s what I was looking for.
I am misunderstood… Here’s what I mean – When you have a portfolio, you can filter categories. The links are simple a href links, ie:
<a href="#" data-filter="advertising-tv_sort" class="advertising-tv_sort_button"><span class="inner_sort_button"><span>Advertising</span><small class="av-cat-count"> 5 </small></span></a>
But there is a event watcher that calls the JS function that actually makes everything work. I want to know what this function is and how to call it from my own JS script.
Thanks,
Teera- This reply was modified 9 years, 8 months ago by teeramusic.
February 27, 2015 at 5:58 am in reply to: Event watches not firing reliably / scripts not loading. #403173I’ll have a look :)
February 25, 2015 at 10:40 am in reply to: Event watches not firing reliably / scripts not loading. #401943I agree, it’s kind of bordering on custom work, but at the same time, if it works on a regular HTML page it should also work in Enfold unless Enfold has done something quirky with the script?
I’m trying to stop all the other videos automatically except for the one that is playing so that there can only be one video playing at any given moment.
Thanks,
TeeraAhh nvm, I got it to work, thanks :)
I’ve put it in functions.php but doesn’t seem to work :\
this script:
<script> var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); function onYouTubeIframeAPIReady() { console.log('stuff is working'); } </script>
works on a simple page like this:
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_scriptBut not when I put it in enfold code block and I want to know why.
For now I just want to only allow one video to play at a time, but in the future I intend to add some functions.
It only seems to work if I put it in the Google analytics box, but I don’t want all of my scripts to load on every page.
February 20, 2015 at 5:01 am in reply to: Table element: column heading dissapears when resized #399442Ahhh yes! Thanks :)
February 19, 2015 at 7:40 am in reply to: Table element: column heading dissapears when resized #398683Could I use javascript or CSS to fade out the current table and display a new (previously hidden) one? Could you point me in the right direction?
- This reply was modified 9 years, 9 months ago by teeramusic.
teeramusic.com
This is what I have right now. Basically it allows only 1 video to play at a time. It was working okay, except now I also have the post entry with the youtube video.
I had wanted to write the script above using jQuery, but I can’t get it to work… so this was my solution. Which worked until now.
Also, I can’t get onYouTubeIframeAPIReady to be triggered when the Youtube video in the blog entry loads except when I put the script in the tracking code, but I don’t want to do that because I don’t want it in every page.
Thanks,
TeeraFebruary 18, 2015 at 3:18 am in reply to: Table element: column heading dissapears when resized #397936
Instruments and Microphone end up getting repeated and the heading is no longer in the correct position.
- This reply was modified 9 years, 9 months ago by teeramusic.
February 11, 2015 at 7:12 am in reply to: Table element: column heading dissapears when resized #394139Still not working properly :(
February 8, 2015 at 2:42 am in reply to: Table element: column heading dissapears when resized #392604I tried the custom CSS and it’s still not working properly. Please have another look.
February 6, 2015 at 4:59 am in reply to: Table element: column heading dissapears when resized #391825http://www.teeramusic.com/recording-studio-2/
I have a similar problem, just resize it and you’ll see. -
AuthorPosts