This topic has 16 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #54219
     allydege
    Participant

    Hi, i would love to make a subject in private message be optional inside my website OR even removed. I want it to be like in public message where that sender directed to the contents box. Any help Please!

    Regards

    #54541
     Laura
    Moderator

    Hello, please go to wp-content/themes/kleo/buddypress/members/single/messages/compose.php copy the file and paste it at wp-content/themes/kleo/buddypress/members/single/messages/ (if a folder is missing, create it)
    Then edit the file as a text and Find

    COPY CODE
    
    <input type=”text” name=”subject” id=”subject” value=”<?php bp_messages_subject_value(); ?>” />
    

    Replace it with this:

    COPY CODE
    
    <input type=”hidden” name=”subject” id=”subject” value=”private message” />
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #54693
     allydege
    Participant

    Hi Laura, i am just using sweetdate not kleo but i have managed to access compose.php in here wp-content/themes/sweetdate/members/single/messages/compose.php and after replacing the line of codes subject still shows up but in different way, please see the attached for explanation.

    Regards

    Attachments:
    You must be logged in to view attached files.
    #54773
     Laura
    Moderator

    Hello, sorry i confused the theme hehe, please share ftp and a wp-admin account so i can check it out 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #54803
     allydege
    Participant
    This reply has been set as private.
    #54814
     Laura
    Moderator

    Hello, i saw you do not have a child theme, did you know that after a theme update you will lose all your changes? That is why the child theme is for, it came with your files, please install and activate it, then move all your changes to there, just so you know, the child is like a mirror, if you want to override something from theme, you copy the path of the file by creating the same folders and using the same filename, for example if you want a code in the header.php you do not edit it form main theme, you copy the header.php of main theme then paste it in the child theme, then edit it. Those changes will never update so will never be lost.

    Please do this before we can move on this topic issue 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #54859
     allydege
    Participant
    This reply has been set as private.
    #54934
     Laura
    Moderator

    Hello, we already did this for you, you will find sweetdate-child in your downloaded .zip from themeforest, just install it and activate it. The changes you have done could be:

    – CSS: if you did css changes, locate them at Styling Options (main theme) Scroll down to Quick Css, copy the codes if you have, now in ftp, go to wp-content/themes/sweetdate and find style.css, as we dont know what changes you could have done, copy the full code and paste it here http://text-compare.com/ then the text to compare will be the default style.css found in your .zip (main theme) Then you can find what have changed and replicate it.

    If you find a code changed in style.css, do not copy the full page, because if you ever want to override a style you wont be able because you copied the full page.
    For example, if you find something like

    COPY CODE
    
    .sample {
    color: blue;
    }
    

    And in default theme it was black
    that means you changed it, so copy that part :

    COPY CODE
    
    .sample {
    color: blue;
    }
    

    To the child theme style.css 🙂 I hope this is not very complicated

    – PHP if you have changed php files, and you know what files you changed, just copy them and paste them in child theme, mirrowing the path, for example you changed header.php so you should copy it and paste it inside child theme, but if the file is located at for example sweetdate/members/single/member-header.php you have to replicate the path so its sweetdate-child/members/single/member-header

    Your users should use the child theme also if you want them to see your changes

    Finally, your theme settings can be exported from Sweetdate panel and imported to sweetdate child the same way

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #55010
     allydege
    Participant
    This reply has been set as private.
    #55039
     Laura
    Moderator

    Hello, you should replicate any change done by php, if you changed functions on the main theme you should add them as i said before to the child theme, maybe thats why in child it doesnt appear.
    If its too difficult you could hire me for custom work at http://www.laura-solanes.com

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #55059
     allydege
    Participant
    This reply has been set as private.
    #55079
     Laura
    Moderator

    Hello, removed the subject, in your child theme, i removed this

    COPY CODE
    
        <label for="subject"><?php _e( 'Subject', 'buddypress'); ?></label>
                <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
    

    From compose.php

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #55090
     allydege
    Participant
    This reply has been set as private.
    #55207
     Laura
    Moderator

    Hello, will check it out

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #55209
     Laura
    Moderator

    Hello, fixed, i added this

    COPY CODE
    
    <div style="display:none;">
                <input type="" name="subject" id="subject" value="New Message" />
    </div>
    

    In the place of the subject in compose.php of child theme, if you need to translate the theme, edit compose.php in child theme and find “New Message” then change it as you want, this is the default Subject for all messages

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #55227
     allydege
    Participant
    This reply has been set as private.
    #55241
     Laura
    Moderator

    I’m glad it worked 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

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

Log in with your credentials

Forgot your details?