• Hello

    I want to use eZinearticles.com’s author widgets in two text boxes, one below the other. I use different pen-names and want to include other widgets also, hence the need.

    The problem is that, only one widget appears.. Is there any limitation on using multiple widgets?

    The code looks like this:

    <!-- Place this tag where you want the widget to render -->
    <div id="ezinearticles-widget"></div>
    
    <!-- Place this script before the closing </body> tag -->
    <script type="text/javascript" src="https://ezinearticles.com/js/widget.v2.js"></script>
    <script type="text/javascript">
    EzineArticlesWidget({
        "id": "ezinearticles-widget",
        "author": xxxxxx,
        "bio": 1,
        "category": null,
        "articles": 10,
        "width": 250,
        "height": 300,
        "theme": {
            "shell": {
                "background": "#AB2224",
                "text": "#ffffff"
            },
            "article": {
                "background": "#ffffff",
                "text": "#333333"
            },
            "links": "#9D0000"
        }
    });
    </script>

    I want to put two such lnstances, one below the other.

    Any help? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just a guess, but can you use different ids on the two? Something like ‘ezinearticles-widget-1’ and ‘ezinearticlse-widget-2’.

    Thread Starter Ghitorni

    (@ghitorni)

    Yes, I tried that. I renamed the second code as ezinearticles-widget-1 but nothing worked.

    I then thought that instead of allowing two instances of Javascript, let me run the first one only (so removed the </script> from below the first text box, yet no result.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need Two text boxes on sidebar’ is closed to new replies.