Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #755970

    Hello and thanks in advance for your help.

    I am using a plugin and they published this code to make a series of links across the top look like tabs

    <?php
    /**
     * Plugin Name: AffiliateWP - Affiliate Area Custom Styling
     * Plugin URI: https://affiliatewp.com
     * Description: Adds custom CSS styling to the Affiliate Area
     * Author: Andrew Munro, Sumobi
     * Author URI: http://sumobi.com
     * Version: 1.0
     */
    function affwp_affiliate_area_styling() {
        // only load CSS on the Affiliate Area
        if ( ! ( function_exists( 'affwp_get_affiliate_area_page_id' ) && is_page( affwp_get_affiliate_area_page_id() ) ) ) {
            return;
        }
        ?>
    
        <style>
        @media only screen and ( min-width: 1200px ) {
        	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs {
        		margin-bottom: 0;
        	}
        	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li {
        		padding-right: 0;
        	}
        	#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab.active {
                padding-top: 5px;
                background: #fff;
            }
        	li.affwp-affiliate-dashboard-tab {
        		border: 2px solid #f7f7f7;
        		border-bottom: none;
        		position: relative;
        		background: #f7f7f7;
        	}
            .affwp-tab-content {
                padding: 40px;
                border: 2px solid #f7f7f7;
                border-top: none;
            }
        	#affwp-affiliate-dashboard-tabs a {
                display: block;
                padding: 10px 15px;
            }
        	#affwp-affiliate-dashboard {
        	    overflow: hidden;
        	}
        	li.affwp-affiliate-dashboard-tab.active:before,
        	li.affwp-affiliate-dashboard-tab.active:after {
        		content: '';
        		position: absolute;
        		height: 2px;
        		right: 100%;
        		bottom: 0;
        		width: 1200px;
        		background: #f7f7f7;
        	}
        	li.affwp-affiliate-dashboard-tab.active:after {
            	right: auto;
            	left: 100%;
            	width: 4000px;
                z-index: 1;
            }
        }
        /* TwentySixteen theme specific */
        /* remove the dotted line */
        #affwp-affiliate-dashboard-tabs a:active,
        #affwp-affiliate-dashboard-tabs a:focus,
        #affwp-affiliate-dashboard-tabs a:hover {
            outline: 0;
        }
        #affwp-affiliate-dashboard-tabs a {
            box-shadow: none;
        }
        #affwp-affiliate-dashboard-tabs a {
            color: #686868;
        }
        #affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab a:hover,
        #affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab.active a {
            color: #1a1a1a;
        }
        </style>
    
        <?php
    }
    add_action( 'wp_head', 'affwp_affiliate_area_styling', 100 );

    This works fine on the default wordpress theme but not on enfold. Wanted to see if you had any changes that I would need to make.

    #758318

    Hey!

    Sorry for the late reply!

    I just checked your website however it seems like you figured it out already? :)

    Best regards,
    Yigit

    #758388

    No Worrries!

    Please check the live site. I am still not seeing that. Same credentials

    #758401

    Hi,

    I am seeing default WooCommerce account page after logging in. Please apply the same changes you applied on your stating site

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.