Home › Forums › Pro Version › Can the link to the post be disabled?
- This topic has 19 replies, 2 voices, and was last updated 5 years, 11 months ago by
Masonry Guy.
- AuthorPosts
- November 17, 2014 at 12:05 am #2714
John Hillcoat
ParticipantHi, this is just a general question. I am using this plugin for the first time and I am wondering if the link through to the post on the images can be disabled. Thanks.
November 17, 2014 at 3:41 am #2715Masonry Guy
KeymasterHi John,
Don’t have that feature yet. But ya it can be removed with some little customization.
If you can provide us your wp-admin and FTP details we can fix this for you. Please kindly send us your details at info (aatt) masonrylayout (d00t) com with this thread link.
PS: Please don’t post your credentials here. It is a public forum.
Thanks
November 17, 2014 at 5:55 am #2716John Hillcoat
ParticipantThanks for your prompt response. I am happy to do this myself. I will do a copy to wordpress theme. Can you point me to the relevant php file and I will go have a look. if it is not straightforward then i will send log in details.
November 17, 2014 at 6:01 am #2717Masonry Guy
KeymasterHi John,
Ok. That sounds great. I am sure you can do. First can you let me know which layout you are using ? I will send the instructions as per it.
Thanks
November 17, 2014 at 6:04 am #2718John Hillcoat
ParticipantI am using ‘Lhotse’. Thanks.
November 17, 2014 at 6:20 am #2719Masonry Guy
KeymasterHi John,
Here is what you need to do.
1. Copy that layout to your wordpress theme and get path of your new layout location.
2. Inside that folder please open layout.php (You may need FTP client here.)
3. Change line no 6 from <a href=”<?php the_permalink(); ?>”><?php the_post_thumbnail($shortcodeData[‘wmlo_image_size’]); ?></a> to <?php the_post_thumbnail($shortcodeData[‘wmlo_image_size’]); ?>This should fix your issue now.
Thanks
November 17, 2014 at 6:24 am #2721John Hillcoat
ParticipantThanks – it all working now as I like it. I appreciate your time.
Cheers,
John
November 17, 2014 at 7:09 am #2722Masonry Guy
KeymasterHi John,
Glad it is fine there now. If you have a few mins for us, can you please kindly write us a review here https://wordpress.org/support/view/plugin-reviews/wp-masonry-layout?filter=5 . It will help us much to grow. 🙂
Thanks
November 17, 2014 at 7:17 am #2723John Hillcoat
ParticipantGiven you a good rating< All the best.
November 17, 2014 at 7:51 am #2724Masonry Guy
KeymasterThank you so much John. 🙂
May 2, 2015 at 1:55 am #5136John Griffith
GuestThis plugin is terrific- very enabling- especially for code challenged like myself.
I am using default theme and my shortcode is on a page and my post type is “page” and it is working beutifully.I also would like to disable the link from the thumbnail which currently goes to the image file. I would prefer the link to either:-
1. Go to the page containing the featured image, or (2nd choice)
2. Be disabled so clicking the thumbnail takes you nowhere.I believe I can do the work if you can provide the instructions,
Thanks in advance,
John
May 2, 2015 at 9:28 am #5137John Griffith
GuestI have part figured this out (my 2nd preference)- please check if what I have dfone is OK, and what should I do to have the featured image link back to its page (not the image)
I copied the default layout to wp and then it the “layout.php”file, at around line 31 I deleted<a href=”<?php the_permalink(); ?>”><?php the_post_thumbnail($shortcodeData[‘wmlo_image_size’]); ?></a>
and substituted<?php the_post_thumbnail($shortcodeData[‘wmlo_image_size’]); ?>
. So clicking on the thumbnail now goes nowhere, which is OK.
If I wanted the thumbnail to link to the page- what would those steps be, please?May 3, 2015 at 2:45 pm #5149Masonry Guy
KeymasterHi John,
I think you have enabled lightbox from the settings. So it is taking you to image file, can you please disable that and try ?
To remove link from the images, you can check this video. https://www.youtube.com/watch?v=LEUuSxGhrik&index=4&list=PLYI3GbO01xo7CrOD_uVXU2g5MrG4ycE2L . It removes link from image and to its related post as well.
Thanks
May 4, 2015 at 12:30 pm #5177Selo
GuestHi,
Is it possible to remove the link from the image (when lightbox is disabled) and enter a custom link? I would like to create a portfolio with a parent page. This parent page needs to have a mini gallery and when ou click the image of the category it will redirect you to the page.
May 4, 2015 at 4:29 pm #5181Masonry Guy
KeymasterHi Selo,
Ya it can be done and need some custom coding to achieve it. You can follow the video link posted in above reply and make changes as per your need.
Thanks
- AuthorPosts
- The forum ‘Pro Version’ is closed to new topics and replies.