Forum Replies Created
-
AuthorPosts
-
That’s great thank you.
Very pleased we got there in the end.
Thanks for all your help
Joel
:-)This reply has been marked as private.Hi Dude
Thanks for your help on this. Could I ask you to double check that please as it doesn’t seem to have made a difference?I’m still getting the entry_without_sidebar class on that page.
I can see that I was close before with my own solution but that didn’t work either.
My solution was a bit more heavy handed but similar:My solution was to change the line below from:
$current_post[‘slider’] = get_the_post_thumbnail($current_post[‘the_id’], $size);
to$current_post[‘slider’] = get_the_post_thumbnail($current_post[‘the_id’], ‘entry_with_sidebar’);
this did work however it meant that the entry_with_sidebar image was being shown everywhere even in places where that wasn’t what was required such as where I was choosing to show blog posts with full size images within other pages.
I tried applying your solution both to my child theme and the core enfold theme and it didn’t seem to work – could you look again please?
Thanks
Joel
Hello
Just wondering if it is possible to get an answer on this issue please…
Thanks
Joel
Hey Devin
Thanks very much for coming back to me. I shall attempt to explain my problem more accurately.
You are correct that the image showing on that page is 710 x 360.
However it should be 710 x 398.I have edited the functions.php file so that the entry with sidebar image is 710 x 398 ( I do not wish to edit the size of entry without sidebar as this would impact the size of images in the slider which I have used on the homepage).
See here: http://new.mclean-williams.com/functions.png
I regenerated images etc so to my understanding, on the page in question the image showing should be 710 x 398.
If you look at this screenshot of the page in question: http://new.mclean-williams.com/sidebar.png
You can see that the page does have a sidebar and yet the class of the image being pulled in is attachment-entry_without_sidebar.
I want this to be attachment-entry_with_sidebar. As the page clearly does have a sidebar, what do I need to do so that the attachment has the class attachement-entry_with_sidebar?
I attempted forcing this page to give the image class attachment-entry_with_sidebar by modifying the includes/loop-index.php file and this did work however it messed up my newsletters page where at the moment I am choosing to show the top image full size as it made that show at 710×398 too which I don’t want.
Hope that all makes sense and you understand my problem.
Thanks
Joel
-
AuthorPosts