Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Vaakash,

    I’ve just updated my post but thanks for your quick reply! Yes the <script> tags were used.

    -Drew

    Hello,

    I have a simple (validated) script running in the shortcoder (5.0.3) that no longer works after the update. I tried posting to your forum but had trouble with my login.

    One of my scripts works but the other does not. It’s pretty basic, for your information this is what is included (on a woocommerce product page) and the shortcode follows the HTML for it:

    (script removed)

    Any help would be greatly appreciated. Luckily I don’t have any downtime because the website is in production. Thanks!
    __

    Additionally for your information, when you are creating a shortcode and you switch from the visual editor to the code editor it saves a draft that you then have to delete once you see your different shortcodes on the main shortcoder page.

    __

    Update: I had multiple scripts in the same shortcode and only one wouldn’t execute after the update but by itself it did execute (and it won’t execute linking from an external js file for some reason. So I managed to get the other scripts working linked to a child theme js file in the same shortcode and kept my one script in it. Now it’s working! I don’t know what the interference would have been with the scripts since they were working together before the update.

    • This reply was modified 5 years, 2 months ago by drewshere.
    Thread Starter drewshere

    (@drewshere)

    }
    add_action(‘admin_bar_menu’, ‘custom_toolbar_link’, 999);

    ^^^That needs to be added to the bottom of the PHP

    Thread Starter drewshere

    (@drewshere)

    Thanks for checking this out Tara ?? I found a workaround though in case anyone wants to know::

    CSS Hide the wordpress icon in upper left:

    #wp-admin-bar-wp-logo {
    display: none!important;
    }
    CSS Hide the site title:

    #wp-admin-bar-site-name {
    display: none!important;
    }

    PHP custom function to add your own link:

    function custom_toolbar_link($wp_admin_bar) {
    	$args = array(
    		'id' => 'mywebsite',
    		'title' => 'My Website',
    		'href' => 'https://www.mywebsite.com',
    		'meta' => array(
    			'class' => 'mywebsite',
    			'title' => 'My Website'
    			)
    	);
    	$wp_admin_bar->add_node($args);

    Thread Starter drewshere

    (@drewshere)

    Hey thanks for the reply!

    I’m not trying to do either, really. I’m only trying to direct folks to site.com/home/ for the home page instead of site.com.

    So, I’ve change the Logo link for example from site.com to site.com/home/ I’m just trying to change the link in the admin/profile page in the upper left hand corner.

    Guessing but I think it would probably involve a custom function that would make a change to admin-bar.php but I’m not sure how to go about it.

Viewing 5 replies - 1 through 5 (of 5 total)