Okay
  Public Ticket #3786330
Customizations
Closed

Comments

  •  5
    Matthew started the conversation

    I am trying to add some customizations to the sidebar.php menu and class-salesking-public.php.  I saved them both to /wp-content/themes/Divi Child/salesking/.  But the customizations do not show up!!  What am I doing wrong?


    I also tried to add the subfolders but that didn't work!

    I switched themes to WP standard 2025, that didn't work!

  •   WebWizards replied privately
  •  5
    Matthew replied

    Thanks for the reply.  I will upload the latest version of SalesKing you sent. 


    Since I am using B2B King and Sales King, I was trying to set the Go to Sales Agent Dashboard to open in a new tab.  But if I can edit the sidebar.php in the child theme, I can create a link to back to main screen. 

    Please take a look at my other posts.  I need some help getting the B2B King and Sales King working together. 


    Thanks!

    Attached files:  Screenshot 2024-12-20 at 08-33-05 My account Life Line Foods - Wholesale Portal.png

  •  2,301
    WebWizards replied

    To make the "go to sales agent dashboard" button open in a new tab, you can add this PHP snippet to your site (to functions.php or any code snippets plugin):

    add_action('wp_head', function(){
    	?>
    	<script>
    		jQuery(document).ready(function(){
    			jQuery('.salesking_go_to_agent_dashboard').attr('target','_blank');
    		});
    	</script>
    	<?php
    });