I've been modifying the theme, but can't quite figure this part out.
For the portfolio single pages, I'd like to stop the automatic insertion of the "featured image" and instead have the images created by the [portimg] shortcodes only. The reason for this is that I want to open a video in fancybox when each portfolio image is clicked, but I can only do this with the [portimg] images - the featured image will always just open a copy of itself in fancybox. At the moment you are also limited to a just one [portimg] after the featured image - no matter how many more times I insert the shortcode you are limited to a total of two images on each portfolio single page.
You can see what I mean here:
http://richardfrazer.com/portfolio/hugo/The lower image does what I want (opens a video) but the top one just opens an image and I cant change that.
So if I remove the php code that inserts the "featured image" it also breaks so that no other images are inserted.
I'd like some help understanding where the [portimg] tags are parsed and inserted into the post.
Thanks in advance
Comments
OK this is really tricky(read shity) code I have made to make this working :-)
Firstly [portimg] - it work just fine for many images. I have code:
and that is result http://demo.csshover.pl/portfolio/monster-inc/
So there is possibility that something crashed during modifications :-(
If you would like to use featured image on portfolio items list, but not in portfolio item itself, than you could edit single-portfolio.php ~87, and delete:
Next edit /airborn/common/js ~275 find:
change to :
With regards.
So first mistake I realised is that I was wrapping multiple portfolio images in separate [portfolio] tags. i.e. rather than what you are doing For the second part, I was finding the single-portfolio.php, but it was the .js file I didnt know about - I will modify this accordingly. It was when I removed the (div class="line") that it broke, and I now understand why.
Whilst we are at it, any idea why the top buttons for the "skills" ("button small1 mm") on this page
http://richardfrazer.com/portfolio/ dont work? I only modified the CSS colours, but they just dont go anywhere when clicked. If I click the "Tags: Compositing" links below the post (which has the same URL) then these links work.
With regards.
You have JavaScript error, and there should be two ways to fight it:
1. Turn on cufon fonts in Airborn->fonts
2. If you don't want to use cufon go to airborn/common/js/scripts.js line ~247 and
change this: to: It should do it.
With regards.