-
Author
-
October 31, 2013 at 18:05 #5487
mpitka
ParticipantHi!
I want to disable links from Latest Members carousel. That carousel located underneath search/signup form. I only want it to show pictures, but no link to profiles.
How can I do that?
November 1, 2013 at 10:46 #5528SQadmin
KeymasterHi,
You can add this code to sweetdate-child/functions.php to disable the links:Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 1, 2013 at 13:00 #5611mpitka
ParticipantIt messed up my site. Now I’ts only a blank site when trying to go this URL. I tried to delete whole thing from funktions.php and still the same problem?
November 1, 2013 at 13:31 #5619mpitka
ParticipantNow I got my site to work as it was. But i don’t get this funtions.php code working. It’s still a link.
November 1, 2013 at 15:07 #5635SQadmin
KeymasterOpen that link and there is a code to add … not the link itself
That code should go in sweetdate-child/functions.php
You don’t have to delete anythingHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 1, 2013 at 22:58 #5670SQadmin
Keymastersweetdate-child is a separate theme that has to be installed and activated. it is included in the downloaded package in the WordPress folder.
Make sure to activate the child theme and add just that codeHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 2, 2013 at 11:21 #5713mpitka
ParticipantIt does not work 🙁 I get this error-message
Parse error: syntax error, unexpected ‘}’ in /homez.755/boorntdk/www/wp-content/themes/sweetdate-child/functions.php on line 29
November 2, 2013 at 11:27 #5714JohnDoe
ParticipantNot sure why there’s ?> and <?php like that?
add_action(‘wp_footer’,’kleo_disable_profile_links’, 11);
function kleo_disable_profile_links() {
?>
<script>
jQuery(document).ready(function() {
jQuery(“.profile-thumbs a”).attr(“href”,”#”);
jQuery(“.profile-thumbs a”).on(‘click’, function(e) {
e.preventDefault();
});
});
</script>
<?php
}Shouldn’t the tags be the other way around @sqadmin ?
November 3, 2013 at 00:09 #5758SQadmin
KeymasterThat is fine. The code works.
Share with us your full functions.php code @mpitkaHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 4, 2013 at 12:02 #5825mpitka
ParticipantMy functions.php looks like this:
<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/?>
add_action(‘wp_footer’,’kleo_disable_profile_links’, 11);
function kleo_disable_profile_links() {
?>
<script>
jQuery(document).ready(function() {
jQuery(“.profile-thumbs a”).attr(“href”,”#”);
jQuery(“.profile-thumbs a”).on(‘click’, function(e) {
e.preventDefault();
});
});
</script>
<?php
}November 5, 2013 at 13:36 #5932SQadmin
KeymasterCode seems fine. Your sweetdate-child theme is active?
Give me a link to your site .
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 5, 2013 at 13:43 #5934mpitka
ParticipantIt still craches and says: Parse error: syntax error, unexpected ‘}’ in /homez.755/boorntdk/www/wp-content/themes/sweetdate-child/functions.php on line 28
My site is http://www.boo.fi
November 5, 2013 at 13:46 #5936SQadmin
KeymasterI see the problem. remove the ?> before the add_action line
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 5, 2013 at 13:51 #5940mpitka
Participantnow it says:
“Parse error: syntax error, unexpected T_STRING in /homez.755/boorntdk/www/wp-content/themes/sweetdate-child/functions.php on line 3”😀
November 5, 2013 at 20:42 #6008SQadmin
Keymaster… this is how it should look like
http://pastebin.com/1wLQDjvMHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 5, 2013 at 20:58 #6021mpitka
ParticipantI don’t know why it does not work with me. Now there’s not any error messages, but still all these pictures are links.
November 5, 2013 at 21:04 #6027mpitka
ParticipantI’m wondering that are we talking about the same carousel?
Here’s screenshot what I mean:
November 6, 2013 at 18:33 #6084SQadmin
KeymasterYes that is what I am talking about. Give a link to your site.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 6, 2013 at 21:33 #6149SQadmin
KeymasterI saw your link somewhere above.
You are right. We did some changes to the theme for next version and some things changed. Please try the code again. Sorry for that:
http://d.pr/n/zTu8Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 6, 2013 at 22:11 #6153mpitka
Participantstill not working 🙁 No error messages, but links remain.
November 7, 2013 at 10:55 #6178SQadmin
KeymasterI opened your site and your links don’t work…which id good 🙂
try clearing cache or use another browser
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 7, 2013 at 11:35 #6181mpitka
ParticipantOh, you are right. I got confused because this “finger” still remains. Is there any easy way to disable it?
November 8, 2013 at 01:58 #6236SQadmin
KeymasterYou can add this css code to WordPress Admin – Sweetdate – Styling options – Quick css
COPY CODE.profile-thumbs a, #profile-thumbs a {cursor: auto;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 5, 2014 at 16:48 #11964shanevie
ParticipantWhat about for the Top members how to disable those links? Right before the Recent Testimonial?
March 8, 2014 at 00:37 #12296Abe
KeymasterHi, something like:
http://pastebin.com/p2EZeNwxHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.