Forum Replies Created
-
Author
-
dunnyukParticipantCOPY CODE
@media only screen and (max-width: 767px) { .reveal-modal .button.facebook { float: none; width: 175px; height: 45px; margin-left: -4%; } }
dunnyukParticipanti had modified a file from buddypress
wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-loader.php
and i had asked the location to place this file ‘child theme wise’ so it didnt get overwritten on update.
dunnyukParticipantthat made it wider but the text is still on two lines.
ive adjusted it now using that css as a base, Thanks.dunnyukParticipantthe food preference field (IMG_4244) ive changed from multi select box to text field, so although not as problem for me right now could probably do with fixing for the future updates.
but the facebook button needs some css to fix.
thanks in advance.dunnyukParticipantalso if you add a “multi select box” to the search page it doesnt render correctly in ios.
http://comedinewithus.biz/members/
multi select box “food preference”
see attached image.
again – I appreciate your help.
Attachments:
You must be logged in to view attached files.dunnyukParticipantdunnyukParticipantthe fuctions.php in the main sweetdate theme folder is different from the child theme fuctions.php only in its content, or lack of…
the child theme version is a blank canvas so to speak because of this ->
——————————————————————————————————————–
A child theme consists of at least one directory (the child theme directory) and two files (style.css and functions.php), which you will need to create:Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent’s file.)
https://codex.wordpress.org/Child_Themes
——————————————————————————————————————-so the original is a “full” file so to speak and the child one just has a few needed php lines within which to add things. that would be why if you copied the whole file over to the child – wordpress spat its dummy….
child theme function.php supplied with theme.
COPY CODE<?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 */ ?>
then lets say you need to edit a different file all you do is copy the file from the main theme and place it in the child theme folder – making sure you copy the folder structure – then make your edits to it and it will override the original – leaving it safe to update at a later date.
7thqueen have been nice enough to make the child theme for us – im using it and everythings going fine for me so far.(its my first time using a child theme)
so my take on it is – the functions.php is for making sitewide changes, and for more specific changes – find the file you need to change then copy it to the child and the folder structure its in then edit away…
that 1 page linked up there tells you all you need to know. give it a read.(it will take you 10 mins max)
so your index.php – copy it – place it in the child theme folder in the same place as the original and that should be it.
hope this helps.September 3, 2015 at 22:08 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #76110dunnyukParticipantthank you sir…
works perfectly.September 3, 2015 at 12:21 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #75993dunnyukParticipanttried that but no joy.
can you goto the site and click members in the menu and see if its a cache problem my end.thanks.
September 1, 2015 at 13:09 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #75625dunnyukParticipanthi Andrei thanks for helping.
this makes the forums not visible to non registered members but not the group pages or the members pages / profiles which is what i was after.
any chance of helping me fix this.?August 24, 2015 at 11:11 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #74297dunnyukParticipantany news on this plse…
dunnyukParticipantthe functions.php file is just a txt file – edit it with notepad ++
use your original vs thae one above to see changes.dunnyukParticipantthe original fuctions.php is in – your downloaded files, main files, wordpress, sweetdate-child.
heres mine………… (im not staff here – just a user like yourself)
COPY CODE<?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 */ /** * Redirect buddypress and bbpress pages to registration page */ function kleo_page_template_redirect() { //if not logged in and on a bp page except registration or activation if( ! is_user_logged_in() && ( ( ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) || is_bbpress() ) ) { wp_redirect( home_url( '/register/' ) ); exit(); } } add_action( 'template_redirect', 'kleo_page_template_redirect' ); add_action('after_setup_theme','kleo_my_hearts_actions'); function kleo_my_hearts_actions() { /* disable matching on member profile */ remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match'); /* Replace the heart over images */ add_filter('kleo_img_rounded_icon', 'my_custom_icon'); /* Replace the heart from register modal */ add_filter('kleo_register_button_icon', 'my_custom_icon_register'); /* Replace the heart from About us widget */ add_filter('kleo_widget_aboutus_icon', 'my_custom_icon_about_widget'); } /* Replace the heart with a camera icon function */ function my_custom_icon () { return 'camera'; } /* Replace the heart from register modal with a user icon function */ function my_custom_icon_register () { return 'user'; } /* Replace the heart from about us widget with a user icon function */ function my_custom_icon_about_widget () { return 'user'; } ?>
Attachments:
You must be logged in to view attached files.August 18, 2015 at 13:53 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #73540dunnyukParticipantThis reply has been set as private.August 16, 2015 at 23:43 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #73326dunnyukParticipantno it didnt im afraid.
-
AuthorPosts