WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Functions.php Help (2 posts)

  1. welshhuw
    Member
    Posted 3 years ago #

    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

  2. welshhuw
    Member
    Posted 3 years ago #

    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>';
    
        }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags