Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • in reply to: Visual composter Issue #97710
     wd7080
    Participant
    This reply has been set as private.
    in reply to: How to redirect the member profile ? #96507
     wd7080
    Participant

    @HDcms

    add this to your child theme functions.php

    COPY CODE
    
    function jessicana_redirect_page( $redirect_to, $request, $user ) {
        $redirect_to = bp_core_get_user_domain($user->ID) . 'profile/';
        return $redirect_to;
    }
    add_filter('login_redirect', 'jessicana_redirect_page', 11, 3);

    and you will get users redirected to their profile page.

    in reply to: Visual composter Issue #91674
     wd7080
    Participant

    @radu

    This functions’ code redirects to the home page and it doesn’t redirect to the page where users chose to login:

    COPY CODE
    function wpse125952_redirect_to_request( $redirect_to, $request, $user ){
        // instead of using $redirect_to we're redirecting back to $request
        return $request;
    }
    add_filter('login_redirect', 'wpse125952_redirect_to_request', 10, 3);
    in reply to: Styling (footer-color border-top) #84773
     wd7080
    Participant

    Hi Laura

    What I want giving the border above the footer the following styles:

    COPY CODE
    hr {
    	color: #393939;
    	background-color: #333;
    	height: 5px;
    }
    in reply to: page load #83961
     wd7080
    Participant

    Hello,

    Thanks for the code:

    COPY CODE
    .member-inner-list.animated.animate-when-almost-visible.bottom-to-top.start-animation {	
        -webkit-animation: none;
        -o-animation: none;
        animation: none;
        opacity: 1;
        -moz-transform: none;
        -webkit-transform: none;
        -o-transform: none;
        transform: none;
    }

    It did not work. Could you please advice?

    Thanks

    in reply to: Functions . php #60573
     wd7080
    Participant

    and one more thing, am I safe to delete what the child default functions.php below? Does the block below import data from somewhere else or it’s just informational comments?

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Kleo
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Kleo 1.0
     */
    
    /**
     * Kleo Child Theme Functions
     * Add custom code below
    */ 
    in reply to: Functions . php #60571
     wd7080
    Participant

    Well, I am using multisite and in multisites I can’t upload a FAV ico. I insert this code to the functions.php but for some reason I can’t get it work:

    COPY CODE
    define('ALLOW_UNFILTERED_UPLOADS', true);
    add_filter('upload_mimes', 'pixert_upload_types');
    function pixert_upload_types($existing_mimes=array()){
    $existing_mimes['flv'] = 'video/x-flv';
    $existing_mimes['mid'] = 'audio/midi';
    return $existing_mimes;
    }

    Please check: https://wordpress.org/support/topic/sorry-this-file-type-is-not-permitted-for-security-reasons-3

    in reply to: Functions . php #60466
     wd7080
    Participant

    This is all of what I have in my functions.php:

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Kleo
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Kleo 1.0
     */
    
    /**
     * Kleo Child Theme Functions
     * Add custom code below
    */ 
    // ADD FAVICON TO HEADER 
    function blog_favicon(){echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('template_directory').'/favicon.ico">';}
    add_action('wp_head', 'blog_favicon');
    ?>
Viewing 8 posts - 1 through 8 (of 8 total)

Log in with your credentials

Forgot your details?