1. Home
  2. Sweetdate
  3. Developer

Chapter: Developer

Snippets, actions, filters, examples of changing theme using code

Change “SIGN UP” URL at Modal Popup

If you want to change the URL of the SIGN UP link at the modal popup in SweetDate theme, you would need to edit the popup file at the child theme. How to change the Create an account link: At your website files, find wp-content/themes/sweetdate/page-parts and copy the file general-header.php Go to wp-content/themes/sweetdate-child/page-parts ( create the page-parts folder if you […]

Error 404

An Error 404 is generated when the browser is unable to find a page, image, video etc. It’s not unusual to see an Error 404 in WordPress and the most common cause is updating a custom post type or taxonomy, this can occur when updating a plugin. Resolving Error 404 Go to WP Admin > Settings > Permalinks and re-save […]

Troubleshooting an issue

Overview You may encounter various issues when building your site. This is especially true as you add more functionality from plugins and custom code. You can follow the below steps to isolate the issue you’re facing and potentially remedy the situation. For each of the steps below you will need to pure your browsers cache. This can be achieved in […]

Introduction to the child theme

Child themes allow you to make small or large changes to the parent theme’s design or structure in an update safe way. Any changes made in the Sweetdate child theme override original files. To get started with using a child theme you’ll first need to have the Sweetdate theme installed, then install and activate the child theme that comes bundled […]

How to add Profile Fields under Member Name at Members Directory

You can change the info that displays under the name and the details field by adding this to your sweetdate-child/functions.php file: //members page fields add_action(‘after_setup_theme’,’kleo_my_member_data’); function kleo_my_member_data() { global $kleo_config; //this is the details field, right now it take the “About me” field content $kleo_config[‘bp_members_details_field’] = ‘About me’; //this display the fields under the name, eq: 36 / Woman / […]

How to Delete the Link from the Website Logo

Copy the header.php of main theme and paste it at child theme, then edit it and find <a href=”<?php echo get_home_url(); ?>”><img id=”logo_img” src=”<?php echo sq_option(‘logo’,get_template_directory_uri().’/assets/images/logo.png’); ?>” width=”294″ height=”108″ alt=”<?php bloginfo(‘name’); ?>”></a> Replace it with <img id=”logo_img” src=”<?php echo sq_option(‘logo’,get_template_directory_uri().’/assets/images/logo.png’); ?>” width=”294″ height=”108″ alt=”<?php bloginfo(‘name’); ?>”>  

Full Width Profile Fields

If you have very long questions and answers and want to have both full width, with answers below questions, add the following to style.css of child theme: #buddypress div.profile .dl-horizontal dt { width: 100% !important; text-align: left !important; } #buddypress div.profile .dl-horizontal dd { margin: 0 auto !important; }  

How to Customize Women Online and Men Online Counters – WITHOUT ELEMENTOR

If you need to customize these counters because your website is not towards dating but maybe traveling, or if your website is in another language and so do are your profile fields, copy and paste the following shortcodes and fill the blank spaces with your own fields 🙂   [kleo_status_icon type=”custom” field=”YOUR CUSTOM FIELD HERE” value=”THE VALUE TO COUNT” online=”yes” […]

More Visible Discount Code Text (PMPRO Checkout)

By default at Paid Memberships Pro checkout, the discount code is small and difficult to see for the user. With this code, you can add color to it, change font size and weight. Before After To add a more visible discount code text, add this to style.css of child theme 🙂 p#other_discount_code_p { color: #2ba6cb; font-size: 12px; font-weight: 700; } […]