Forum Replies Created
-
AuthorPosts
-
April 17, 2014 at 10:25 am in reply to: Change order of gallery items with show_post_snippets shortcode? #6011jhodgskiMember
No, I’m afraid it’s not online yet.
jhodgskiMemberI’ve found the height is hard set to 600px in the Slider Settings screen, so I just need to change that. Thanks for your help.
jhodgskiMemberHiya,
Yes, I’ve ended up using Revolution Slider and have it sorted now. Not too tricky once you’ve worked out what’s what!…
Any idea, though, how I can get the full video to show? The video is 600px by 480px and currently the bottom part of the vid is getting trimmed off. I’ve tried all the settings in the “Video Size:” options but nothing seems to successfully get the whole vid to display.
Cheers,
JamesjhodgskiMemberNo this is some development I am doing on my PC. It isn’t uploaded to the web yet.
(Which URL were you referring to, by the way?)
jhodgskiMemberCalling is_front_page() via the wp_head hook works fine.
jhodgskiMemberI’m not sure if this problem happened when I moved the site or when I deactivated/reactivated the Agile Child theme – maybe you could test the latter easily.
I since been into the database and the problem seems to be that the index values in the options_tree data seem to have got changed somehow – maybe that was from deactivating/reactivating the theme?
February 16, 2014 at 11:56 pm in reply to: How to make portfolio images on Single Portfolio Item page to display correctly? #4531jhodgskiMemberThat’s fixed it. Thanks.
jhodgskiMemberSolved. It’s a custom post type.
jhodgskiMemberThanks, but your code contained a couple of errors (white screen + 404).
Correct code for functions.php is:
/*
* Load my script
*/
function mo_enqueue_scripts() {
wp_enqueue_script(‘my-custom-js’, get_stylesheet_directory_uri() . ‘/js/my-custom.js’, array(‘jquery’), false, true);
}
add_action(‘wp_enqueue_scripts’, ‘mo_enqueue_scripts’);Correct code for my-custom.js:
jQuery(document).ready(function ($) {
$(‘.smooth-scroll’).smoothScroll();
});February 14, 2014 at 2:00 am in reply to: How to make portfolio images on Single Portfolio Item page to display correctly? #4469jhodgskiMemberI’m afraid the mouseover problem has returned… It possibly has something to do with me changing the slug of my Portfolio page from filterable-portfolio to portfolio?
Anyway, the portfolio image on each Single Portfolio Item page now slides up again when you mouseover it.
Can you advise. Thanks.
jhodgskiMemberOK, thanks for confirming. I’ve taken the filter controls off then by using this code instead in my Portfolio Section…
[show_post_snippets post_type=”portfolio” number_of_columns=”3″ post_count=”6″ image_size=”medium” display_text=”true” show_excerpt=”false” hide_thumbnail=”false”]
Would you be able to bring in the functionality as described in the near future as it would be very nice to have the filter controls on the home page without my entire portfolio range being initially displayed?
February 13, 2014 at 2:15 pm in reply to: How to make portfolio images on Single Portfolio Item page to display correctly? #4455jhodgskiMemberIn my Portfolio Section code, I changed image_size=”square” to image_size=”medium” and everything seems to display OK now. Can you confirm what the correct aspect ratio is though?
The “Retain Image Height” option wasn’t ticked in Theme Options > Blog, but I’ve ticked it now and the images are now rendering nicely on the Single Portfolio Item pages – and that’s also fixed the mouseover problem.
Thanks! 🙂
jhodgskiMemberHow do I implement that line of JS code in an upgrade-proof way though?
jhodgskiMemberCheers. I’ve looked at the other solution page, and I prefer this solution…
<a class="smooth-scroll-link" href="#footer" rel="nofollow">Scroll smoothly to footer</a>
…with the JS code being…
$('.smooth-scroll-link').smoothScroll();
…just in case that helps anyone.
February 13, 2014 at 11:19 am in reply to: How to keep the header / sticky menu at its initial size and fixed? #4429jhodgskiMemberGreat stuff, thanks.
By the way, I also added…
#header { position: fixed; }
…to stop the header scrolling off the page.
-
AuthorPosts