This topic has 27 replies, 5 voices, and was last updated 10 years by Abe.

  • Author
  • #5487
     mpitka
    Participant

    Hi!

    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?

    #5528
     SQadmin
    Keymaster

    Hi,
    You can add this code to sweetdate-child/functions.php to disable the links:

    http://d.pr/n/zTu8

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5611
     mpitka
    Participant

    It 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?

    #5619
     mpitka
    Participant

    Now I got my site to work as it was. But i don’t get this funtions.php code working. It’s still a link.

    #5635
     SQadmin
    Keymaster

    Open 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 anything

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5637
     mpitka
    Participant

    i tried to add, but nothing happens

    #5670
     SQadmin
    Keymaster

    sweetdate-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 code

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5713
     mpitka
    Participant

    It 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

    #5714
     JohnDoe
    Participant

    Not 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 ?

    #5758
     SQadmin
    Keymaster

    That is fine. The code works.
    Share with us your full functions.php code @mpitka

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5825
     mpitka
    Participant

    My 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
    }

    #5932
     SQadmin
    Keymaster

    Code 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 solution
    #5934
     mpitka
    Participant

    It 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

    #5936
     SQadmin
    Keymaster

    I 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 solution
    #5940
     mpitka
    Participant

    now it says:
    “Parse error: syntax error, unexpected T_STRING in /homez.755/boorntdk/www/wp-content/themes/sweetdate-child/functions.php on line 3”

    😀

    #6008
     SQadmin
    Keymaster

    … this is how it should look like
    http://pastebin.com/1wLQDjvM

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6021
     mpitka
    Participant

    I don’t know why it does not work with me. Now there’s not any error messages, but still all these pictures are links.

    #6027
     mpitka
    Participant

    I’m wondering that are we talking about the same carousel?

    Here’s screenshot what I mean:

    http://jussipaita.com/karuselli.png

    #6084
     SQadmin
    Keymaster

    Yes 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 solution
    #6101
     mpitka
    Participant
    #6149
     SQadmin
    Keymaster

    I 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/zTu8

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6153
     mpitka
    Participant

    still not working 🙁 No error messages, but links remain.

    #6178
     SQadmin
    Keymaster

    I 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 solution
    #6181
     mpitka
    Participant

    Oh, you are right. I got confused because this “finger” still remains. Is there any easy way to disable it?

    #6236
     SQadmin
    Keymaster

    You 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 solution
    #6266
     mpitka
    Participant

    works perfectly! Thanks SO MUCH!

    #11964
     shanevie
    Participant

    What about for the Top members how to disable those links? Right before the Recent Testimonial?

    #12296
     Abe
    Keymaster

    Hi, something like:
    http://pastebin.com/p2EZeNwx

    Hi 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.

Viewing 28 posts - 1 through 28 (of 28 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?