Support » Themes and Templates » Functions.php Help

  • Resolved welshhuw

    (@welshhuw)


    Hi,

    Please can someone show me where I am going wrong with the code below: I am getting unexpected ” appearing on line xxx

    function custom_dashboard_help() {
        echo '<p>Welcome to the Mamas and Papas Blog Dashboard.</p>
        <p>If you get stuck, you can View or Download the instructions <a target="_blank" href="'
       	 . bloginfo('template_url');  .
        '/how-to-guide.pdf">here</a>.</p>';
    
        }

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Found it out!

    wp_add_dashboard_widget('custom_help_widget', 'Website Support', 'custom_dashboard_help');
        }
    
        function custom_dashboard_help() {
        echo '<p>Welcome to the Mamas and Papas Blog Dashboard.</p>
        <p>If you get stuck, you can View or Download the instructions <a target="_blank" href="'. get_bloginfo('template_url') . '/How-To-Guide.pdf">here</a>.</p>';
    
        }
Viewing 1 replies (of 1 total)
  • The topic ‘Functions.php Help’ is closed to new replies.