Forum Replies Created

Viewing 40 posts - 121 through 160 (of 394 total)
  • Author
  • in reply to: ul.button-group #6088
     SQadmin
    Keymaster

    This works and adds a 30px top margin:

    COPY CODE
    
    @media only screen and (max-width: 767px) {
    #header ul.button-group { margin-top: 30px; }
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Shortcode for displaying a single member #6080
     SQadmin
    Keymaster

    Hello,
    We’re glad you love our theme and please rate it if you haven’t already.
    We created for you this shortcode to display logged in member avatar.
    Shortcode is [kleo_my_avatar]

    Add this code to sweetdate-child/functions.php

    COPY CODE
    
    function kleo_my_avatar() {
    	global $current_user;
    	get_currentuserinfo();
    	$output = '';
    	$output .= '<div class="friend-item" style="text-align:left;"><div class="avatar" style="margin:inherit;">';
    	$output .= get_avatar( $current_user->ID, 94 );
    	$output .= '</div></div>';
    	
    	return $output;
    }
    add_shortcode('kleo_my_avatar', 'kleo_my_avatar');
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Add friend PMPRO #6076
     SQadmin
    Keymaster

    Hi there,
    This is the code that has to be added to sweetdate-child/functions.php. Make sure to have the child theme activated:

    COPY CODE
    
    /* Remove the Add friend button for users that don't have certain membership levels */
    add_action('after_setup_theme', 'restrict_friend_button');
    function restrict_friend_button()
    {
    	$membership_levels = array(2,3);
    	if (!pmpro_hasMembershipLevel($membership_levels) ) {
    		remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
    		remove_action('bp_directory_members_item_last','kleo_bp_member_dir_friend_button', 11);
    	}
    }
    

    Replace your level ids with the 2,3 from this example

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Border problem… #6004
     SQadmin
    Keymaster

    Hello guys
    See this:

    COPY CODE
    
    .form-search.custom input[type="text"], .form-search.custom input[type="password"] {
        border: none;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Cards after member search #5922
     SQadmin
    Keymaster

    We have a caching done for the fields. Try adding this in your sweetdate-child/functions.php and reload the page. After that you can remove the line.

    COPY CODE
    
    delete_transient( 'kleo_bp_meta_fields' );
    

    If the profile fields still don’t show then show us your added code because I am sure you haven’t added it correctly

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Length of a profile field name in user profile #5915
     SQadmin
    Keymaster

    Hi,
    adding this to Styling options – Quick css should make the text go on the next line:

    COPY CODE
    
    .dl-horizontal dt {
        overflow: visible;
        white-space: normal;
    }
    

    You can adjust the with and make it bigger than 160px:

    COPY CODE
    
    .dl-horizontal dt {
        width: 160px;
    }
    .dl-horizontal dd {
        margin-left: 180px;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Assign default Membership level at registration #5908
     SQadmin
    Keymaster

    The code will be something like:

    COPY CODE
    
    
    function kleo_pmpro_default_level($user_id) {
    	global $wpdb, $bp;
    	
    	//Change this with your field name
    	$field_name= "I am a";
    	
    	//Change the field value
    	$value_to_match = "Woman";
    	
    	//Membership level id
    	$membership_level = 1;
    	
    	//Done editing
    	$field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) );
    
    	if ($_POST['field_'.$field_id] == $value_to_match) {
    		pmpro_changeMembershipLevel($membership_level, $user_id);
    	} elseif ($_POST['field_'.$field_id] == "Man") {
    pmpro_changeMembershipLevel(OTHER_LEVEL_ID, $user_id);
    }
    }
    add_action('user_register', 'kleo_pmpro_default_level');
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: keeping scroll bar on the last position when refresh #5902
     SQadmin
    Keymaster

    To hide the top part when viewing your own profile please add this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:

    COPY CODE
    
    .my-account #profile {display:none;}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
     SQadmin
    Keymaster

    Hi, That is the way we designed it. You can see where you are in the Breadcrumb section

    You can change the templates.
    For author pages edit the author.php page and add this after line 20:

    COPY CODE
    <?php the_post(); ?>
    <h1 class="archive-title"><?php printf( __( "All posts by %s", "kleo_framework" ), "<span class=\"vcard\"><a class=\"url fn n\" href=\"" . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . "\" title=\"" . esc_attr( get_the_author() ) . "\" rel="me">&#039; . get_the_author() . "</a></span>"" ); ?></h1>
    <?php rewind_posts(); ?>

    for tags, tag.php after line 18:
    <h1 class="archive-title"><?php printf( __( "Tag Archives: %s", "kleo_framework" ), single_tag_title( "", false ) ); ?></h1>

    for categories. category.php after line 19:
    <h1 class="archive-title"><?php printf( __( "Category Archives: %s", "kleo_framework" ), single_cat_title( "", false ) ); ?></h1>

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Rectangular Box Displays Before Match Executes #5756
     SQadmin
    Keymaster

    Indeed…
    That code should fix it..

    COPY CODE
    
    input[type="text"].greenCircle {background: rgba(0, 0, 0, 0)!important; border:none !important;color:transparent;}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Modal register/login button customization #5745
     SQadmin
    Keymaster

    Need to adjust a little more padding in my previous code:

    COPY CODE
    
    .reveal-modal .button.facebook {
       height: 37px; font-size: 14px; float: right;padding: 10px 7px 11px;
    }
    

    I also added for hover:

    COPY CODE
    
    .reveal-modal .button.facebook:hover {
    background-color: #496bb2; border-color: #496bb2;
    }
    

    ps: yes, you can remove your previous code

    Regards, Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Modal register/login button customization #5738
     SQadmin
    Keymaster

    Hi, put this in sweet admin/Styling options/Quick css box:

    COPY CODE
    
    .reveal-modal .button.facebook {
       height: 37px; font-size: 14px; float: right;padding: 10px 8px 11px;
    }
    
    @media only screen and (max-width: 767px) {
       .reveal-modal .button.facebook { float: none; }	
    }
    

    and for better view on mobile please remove fix width like “width:195px;”.

    We will provide a style fix for this in v2.3

    ps: We’ve already done that on this demo http://seventhqueen.com/demo/sweetdatewp/

    Regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Rectangular Box Displays Before Match Executes #5686
     SQadmin
    Keymaster

    Hi,
    Try adding this to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:

    COPY CODE
    
    .greenCircle {display:none;}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Hide the profile "about field" when logged in #5671
     SQadmin
    Keymaster

    Hi there,


    @Douweboschma
    , you can hide your own profile top area by adding this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:

    COPY CODE
    
    .my-account #profile {display:none;}
    

    We also did a trick here https://archived.seventhqueen.com/forums/topic/keeping-scroll-bar-on-the-last-position-when-refresh
    it makes the navigation links to take you lower on the screen, where the nav resides

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Disable Compatibility match #5666
     SQadmin
    Keymaster

    You need to install it and activate it. See the video tutorial or the documentation https://archived.seventhqueen.com/video-tutorials

    To disable the hearts dd this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:

    COPY CODE
    
    .circular-item .hearts {background:none;}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Change Color of TV Commercial Button on Home page #5534
     SQadmin
    Keymaster

    Hi,
    Add this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css and change with your color:

    COPY CODE
    
    #call-to-actions .alert {
        background-color: #FF0461;
        border: 1px solid #FF0461;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Manual number of members change #5508
     SQadmin
    Keymaster

    Oh sorry 🙂
    is:

    COPY CODE
    
    $number = str_replace(".","",$number);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Disable Compatibility match #5504
     SQadmin
    Keymaster

    Hi, You can do that by adding this code to sweetdate-child/functions.php

    COPY CODE
    
    /* Remove compatibility from profile */
    add_action('after_setup_theme','kleo_remove_compat');
    function kleo_remove_compat() 
    {
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Sign up -field instead of search #5501
     SQadmin
    Keymaster

    To hide the menu on all pages from not logged in users add this css code to Sweetdate – Styling options – Quick css:

    COPY CODE
    
    body:not(.logged-in) .top-bar {display:none;}
    

    ony on homepage:

    COPY CODE
    
    body.home:not(.logged-in) .top-bar {display:none;}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Not appear masculine and feminine members online #5429
     SQadmin
    Keymaster

    In your homepage edit the default kleo_status_icon shortcode and adapt it like this with your values:

    COPY CODE
    
    [kleo_status_icon type="Translated Man" image="http://seventhqueen.com/demo/sweetdatewp/wp-content/uploads/2013/06/apple-touch-icon.png" subtitle="Man online"] 
    

    Also you need to set the Sex field from Sweetdate -> Buddypress. This is used for the member count

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: How to hide backgroung image #5427
     SQadmin
    Keymaster

    Hi, Instead of doing it from the settings you can add this code to Sweetdate – Styling options – Quick css and change the path to your image:

    COPY CODE
    
    .home .header-bg {
        background: url("/wp-content/themes/sweetdate/assets/images/patterns/blue_pattern.gif") repeat scroll 0 0 #0076A3;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: WordPress html footer links #5424
     SQadmin
    Keymaster

    That function displays exactly the original text. Replace with your own text. Something like

    COPY CODE
    
    echo '<div class="row"><div class="six columns">Bla bla</div><div class="six columns right">Bla bla</div></div>';
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Extra membership restrictions – HOW TO #5420
     SQadmin
    Keymaster

    The following codes goes to sweetdate-child/functions.php

    This manipulates the text that shows in the memberhips page:

    COPY CODE
    
    
    /* These restrictions will appear to be configured in Sweetdate - Memberships */
    add_filter('kleo_pmpro_level_restrictions', 'kleo_my_levels_checkmarks');
    function kleo_my_levels_checkmarks($settings) {
     
        $settings = array (
    		//NEW RESTRICTION MESSAGES page with name: message
            array(
                'title' => __('Restrict Messages page','kleo_framework'),
                'front' => __('Access messages page','kleo_framework'),
                'name' => 'message'
            ),
    		//NEW RESTRICTION SHOP page with name: shop
            array(
                'title' => __('Restrict Shop page','kleo_framework'),
                'front' => __('Access Shop page','kleo_framework'),
                'name' => 'shop'
            ),
            array(
                'title' => __('Restrict members directory','kleo_framework'),
                'front' => __('View members directory','kleo_framework'),
                'name' => 'members_dir'
            ),
            array(
                'title' => __('Restrict viewing other profiles','kleo_framework'),
                'front' => __('View members profile','kleo_framework'),
                'name' => 'view_profiles'
            ),
            array(
                'title' => __('Restrict access to groups directory','kleo_framework'),
                'front' => __('Access group directory','kleo_framework'),
                'name' => 'groups_dir'
            ),
            array(
                'title' => __('Restrict access to single group page','kleo_framework'),
                'front' => __('Access to groups','kleo_framework'),
                'name' => 'view_groups'
            ),
            array(
                'title' => __('Restrict users from viewing site activity','kleo_framework'),
                'front' => __('View site activity','kleo_framework'),
                'name' => 'show_activity'
            ),
            array(
                'title' => __('Restrict users from sending private messages','kleo_framework'),
                'front' => __('Send Private messages','kleo_framework'),
                'name' => 'pm'
            ),
            array(
                'title' => __('Restrict users from adding media to their profile using rtMedia or bpAlbum','kleo_framework'),
                'front' => __('Add media to your profile','kleo_framework'),
                'name' => 'add_media'
            )
        );
        return $settings;
    }
    

    This makes the messages page restriction to happen:

    COPY CODE
    
    // restrict profile area - Messages page
    add_action('kleo_pmro_extra_restriction_before_my_profile','kleo_my_custom_restrict1');
    
    function kleo_my_custom_restrict1()
    {
    	//full current url
    	$actual_link = kleo_full_url();
    	//our request uri
    	$uri = str_replace(untrailingslashit(home_url()),"",$actual_link);
    
    	//restrict messaging page url
    	if(preg_match("/^\/".bp_get_members_root_slug()."\/". bp_get_loggedin_user_username()."\/messages\/?/", $uri))
    	{
    		
    		$my_restrictions =  array('message' => array(
    				//2 - restrict certain levels. 0 -restrict none; 1 - restrict all
    				'type' => 2,
    				//levels that you apply the restrictions to
    				'levels' => array(2,3),
    				//'not_member' => 1, //restrict users without a membership level
    				//'guest' => 1 // restrict not logged in users
    			)
    		);
    		//We use the name "message" from the new restriction added above
    		kleo_check_access('message',$my_restrictions);
    	}
    }
    
    //Restrict Shop page
    add_filter('kleo_pmpro_match_rules', 'kleo_my_custom_restrict2');
    
    function kleo_my_custom_restrict2($restrictions) {
    	//regular expression for shop page
    	$restrictions["/^\/shop\/?$/"] = array('name' => 'shop');
    	return $restrictions;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Assign default Membership level at registration #5411
     SQadmin
    Keymaster

    Also this code checks for a specific profile value and add only those users to the membership level:

    COPY CODE
    
    
    
    /**
    * When registering, add the member to a specific membership level
    * based on the field value he has selected
    *
    * @global object $wpdb
    * @global object $bp
    * @param integer $user_id
    */
    function kleo_pmpro_default_level($user_id) {
        global $wpdb, $bp;
     
        //Change this with your field name
        $field_name= "I am a";
     
        //Change the field value
        $value_to_match = "Woman";
     
        //Membership level id
        $membership_level = 1;
     
        //Done editing
        $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) );
        if ($_POST['field_'.$field_id] == $value_to_match) {
                pmpro_changeMembershipLevel($membership_level, $user_id);
        }
    }
     
    function kleo_mu_pmpro_default_level($user_id, $password, $meta) {
        global $bp, $wpdb;
     
        //Change this with your field name
        $field_name= "I am a";
     
        //Change the field value
        $value_to_match = "Woman";
     
        //Membership level id
        $membership_level = 1;
     
        
        //Done editing
        $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) );
        $field_value = $meta['field_'.$field_id];
        if ( $field_value == $value_to_match ) {
            pmpro_changeMembershipLevel($membership_level, $user_id);
        }
    }
     
    if (is_multisite()) {
        add_action( 'wpmu_activate_user', 'kleo_mu_pmpro_default_level', 10, 3);
    } else {
        add_action('user_register', 'kleo_pmpro_default_level');
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Friend Request Notification Color #5403
     SQadmin
    Keymaster

    Hi, Add this css in WP admin – Sweetdate – Styling options – Quick css:

    COPY CODE
    
    .kleo-friends-req {
        background: #000000;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Quick Profile Navigation Showing Non-Registered Users #5397
     SQadmin
    Keymaster

    Hi, We did some changes to the code to support excluding users. Add this code to sweetdate-child/functions.php until next theme version:

    COPY CODE
    
    /**
     * Get next profile link
     * @param int $current_id Displayer user ID
     * @return string User link
     */
    function bp_next_profile($current_id)
    {
        global $wpdb;
    	
    	$extra = '';
    	$obj = new stdClass();
    	do_action_ref_array( 'bp_pre_user_query_construct', array( &$obj ) );
    	if ($obj->query_vars && $obj->query_vars['exclude'] && is_array($obj->query_vars['exclude']) && !empty($obj->query_vars['exclude']) ) {
    		$extra = " AND us.ID NOT IN (" .implode(",",$obj->query_vars['exclude']).")";
    	}
    	
        $sql = "SELECT MIN(us.ID) FROM ".$wpdb->base_prefix."users us"
    		. " JOIN ".$wpdb->base_prefix."bp_xprofile_data bp ON us.ID = bp.user_id"
    		." JOIN ". $wpdb->base_prefix . "usermeta um ON um.user_id = us.ID"
            . " WHERE um.meta_key = 'last_activity' AND us.ID > $current_id"
    		.$extra;
    
        if ($wpdb->get_var($sql) && $wpdb->get_var($sql) !== $current_id )
            return bp_core_get_user_domain( $wpdb->get_var($sql) );
        else 
    		return '#';
    }
    
    /**
     * Get previous profile link
     * @param int $current_id Displayer user ID
     * @return string User link
     */
    function bp_prev_profile($current_id)
    {
        global $wpdb;
    	
    	$extra = '';
    	$obj = new stdClass();
    	do_action_ref_array( 'bp_pre_user_query_construct', array( &$obj ) );
    	if ($obj->query_vars && $obj->query_vars['exclude'] && is_array($obj->query_vars['exclude']) && !empty($obj->query_vars['exclude']) ) {
    		$extra = " AND us.ID NOT IN (" .implode(",",$obj->query_vars['exclude']).")";
    	}
    	
        $sql = "SELECT MAX(us.ID) FROM ".$wpdb->base_prefix."users us"
    		. " JOIN ".$wpdb->base_prefix."bp_xprofile_data bp ON us.ID = bp.user_id"
    		." JOIN ". $wpdb->base_prefix . "usermeta um ON um.user_id = us.ID"
            ." WHERE um.meta_key = 'last_activity' AND us.ID < $current_id"
    		. $extra;
    	
        if ($wpdb->get_var($sql) && $wpdb->get_var($sql) !== $current_id)
            return bp_core_get_user_domain( $wpdb->get_var($sql) );
        else 
            return '#';
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Add links to footer #5387
     SQadmin
    Keymaster

    Hi,
    You can redefine in sweetdate-child/functions.php the function that handles that text:

    COPY CODE
    
    function kleo_copyright_text()
    {
      echo '<p>'. __("Copyright", 'kleo_framework').' © '.date("Y").' '. get_bloginfo('name').'. <br class="hide-for-large show-for-small"/>'. get_bloginfo( 'description' ).'</p>';        
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: keeping scroll bar on the last position when refresh #5337
     SQadmin
    Keymaster

    Hello all 🙂
    This code added to footer.php before the wp_footer() line will make the page open at the buddypress navigation level:

    COPY CODE
    
    <script>
    jQuery(document).ready(function() {
    	jQuery("#item-nav .item-list-tabs a, #subnav a").each(function() {
    		jQuery(this).attr('href',jQuery(this).attr('href')+"#item-nav");
    	});
    });
    </script>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: No Lightbox on pages #5321
     SQadmin
    Keymaster

    Yes you are right. This addresses only the images

    COPY CODE
    
    <script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery(".article-content a[href$='.jpg'], .article-content a[href$='.gif'], .article-content a[href$='.png']").prettyPhoto();
    });
    </script>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: How to change matching system #5319
     SQadmin
    Keymaster

    Hi,
    You are right. Here is the code with the fix to match on both user preferences:

    COPY CODE
    
                //Sex match
    			if ((isset($kleo_config['matching_fields']['sex_match']) && $kleo_config['matching_fields']['sex_match'] == '1') 
    				|| !isset($kleo_config['matching_fields']['sex_match']) )
    			{
    				$field1_u1 = xprofile_get_field_data($kleo_config['matching_fields']['sex'], $userid1);
    				$field12_u1 = xprofile_get_field_data($kleo_config['matching_fields']['looking_for'], $userid1);
    				$field1_u2 = xprofile_get_field_data($kleo_config['matching_fields']['sex'], $userid2);
    				$field12_u2 = xprofile_get_field_data($kleo_config['matching_fields']['looking_for'], $userid2);
    				
    				if ( $field1_u1 == $field12_u2 && $field12_u1 == $field1_u2 ) {
    					$score += $kleo_config['matching_fields']['sex_percentage'];
    				}
    				//if no sex match, return the score
    				else {
    					return $score;
    				}
    			}
    

    here is the code if you want the script not to stop if the sex preferences does not match

    COPY CODE
    
                //Sex match
    			if ((isset($kleo_config['matching_fields']['sex_match']) && $kleo_config['matching_fields']['sex_match'] == '1') 
    				|| !isset($kleo_config['matching_fields']['sex_match']) )
    			{
    				$field1_u1 = xprofile_get_field_data($kleo_config['matching_fields']['sex'], $userid1);
    				$field12_u1 = xprofile_get_field_data($kleo_config['matching_fields']['looking_for'], $userid1);
    				$field1_u2 = xprofile_get_field_data($kleo_config['matching_fields']['sex'], $userid2);
    				$field12_u2 = xprofile_get_field_data($kleo_config['matching_fields']['looking_for'], $userid2);
    				
    				if ( $field1_u1 == $field12_u2 && $field12_u1 == $field1_u2 ) {
    					$score += $kleo_config['matching_fields']['sex_percentage'];
    				}
    				else {
    					$score += 10;
    				}
    			}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Adding an Additional H7 Styling Option #5312
     SQadmin
    Keymaster

    Hi,
    Add to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css your css like this where you can add your styling:

    h7 {
    color: #333;
    background: #ccc;
    }
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Homepage redirect #5275
     SQadmin
    Keymaster

    Hi,
    That implies some php code added to your sweetdate-child/functions.php
    This time I will provide you the code:

    COPY CODE
    
    add_action( 'template_redirect', 'my_redirect_home' );
    
    function my_redirect_home() 
    {
        if( is_user_logged_in() && is_front_page() )
        {
            wp_redirect( site_url( 'members' ) );
            exit();
        }
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Horizontal Search Field Bacground Color #5267
     SQadmin
    Keymaster

    Well this way it works. Strange 🙂

    COPY CODE
    
    form.custom div.custom.dropdown ul li.selected {
    background: none repeat scroll 0 0 #333333;
    color: #333333;
    }
    form.custom div.custom.dropdown ul li {
    background: #c9c8c6;
    color: #555555;
    }
    .form-search.custom div.custom.dropdown a.current{
    background-color: #c9c8c6;
    border: 1px solid #DDDDDD;
    color: #141414;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Cometchat chat link in profile #5262
     SQadmin
    Keymaster

    You can add code with “pre” tag
    That code shoud go in members/single/member-header.php
    instead of ‘USERID’ this php function gets the displayed user id:

    COPY CODE
    
    bp_displayed_user_id()
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: How to translate this? #5261
     SQadmin
    Keymaster

    Hi,
    Thanks for pointing this out.
    1. That is an image added with css. Upload your image in the child theme and add the css with the according image path:

    COPY CODE
    
    .membership .pricing-table.popular:after {
        background: url("../images/pop.png") no-repeat scroll center center rgba(0, 0, 0, 0);
    }
    

    2. Please replace the content of this file sweetdate/paid-memberships-pro/pages/cancel.php with: http://d.pr/n/eCvH
    Then rescan the strings and should appear in the Sweetdate translation kleo_framework domain

    3. is related to bpAlbum. If you are using the one that comes with the theme follow this tutorial: https://archived.seventhqueen.com/forums/topic/where-to-translate-bp-album

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Remove post date #5255
     SQadmin
    Keymaster

    You have the function sweetdate_entry_meta in sweetdate/functions.php which you can copy/paste to sweetdate-child/functions.php and remove this occurrence from it:

    COPY CODE
    
    echo '<li><i class="icon-calendar"></i> '.$date.'</li>';
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Add friend button in member directory #5254
     SQadmin
    Keymaster

    Hi, The styles are in custom_buddypress/_inc/css/default.css and shoud apply. maybe you didn’t updated all files…
    with this you can address those buttons to style them:

    COPY CODE
    
    .bp-member-dir-buttons div.generic-button a.add, .bp-member-dir-buttons div.generic-button a.remove
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Blank page / screen when loading shortcodes #5249
     SQadmin
    Keymaster

    Hi, Please replace the contents of this file: wp-content/themes/sweetdate/framework/shortcodes/tinymce/get_wp.php with this:

    COPY CODE
    
    // Access WordPress
    $wp_load = "wp-load.php";
    $count = 0;
    while(!file_exists($wp_load)) {
    	$count++;
    	if ($count > 12) { 
    		break;
    	}
    	$wp_load = '../' . $wp_load;
    }
    
    if (file_exists($wp_load)) {
    	require_once(realpath($wp_load));
    }
    

    Please keep the first line
    <?php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Remove post date #5182
     SQadmin
    Keymaster

    Add this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:

    COPY CODE
    
    ul.link-list li:first-child {
        display: none;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Bugs – rtMedia #5178
     SQadmin
    Keymaster

    Hi,
    We found a fix for the big video in the popup. Add this css to Sweetdate – Styling options – Quick css:

    COPY CODE
    
    embed,
    iframe,
    object,
    video {
    	max-width: 100%;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 40 posts - 121 through 160 (of 394 total)

Log in with your credentials

Forgot your details?