Support » Plugin: Social Icons Widget & Block by WPZOOM » Icons in php-file

  • Resolved demonshi

    (@demonshi)


    Hi.
    What php code should I put in the php-file to show the icons on all pages?

    For example:
    echo do_shortcode(“[icons]”);

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WPZOOM

    (@wpzoom)

    Hello,

    Our plugin doesn’t include a shortcode.

    Using the Widget Shortcode plugin you can generate a shortcode for each Social Icons widget and insert the shortcode in posts or pages where you need it.
    You can also create a hidden widget area using a plugin like Custom Sidebars if you don’t want to add the widget in a sidebar to be visible.
    https://wordpress.org/plugins/widget-shortcode/

    Thread Starter demonshi

    (@demonshi)

    I have 100 pages and I put a shortcode on each page manually?
    What for? If you can do this in a single php-file in a single line.

    Plugin Author WPZOOM

    (@wpzoom)

    You can use the same PHP tag as in your first message, but update it with the shortcode from that plugin.

    Something like this:

    <?php echo do_shortcode('[widget id="zoom-social-icons-widget-4"]'); ?>

    Thread Starter demonshi

    (@demonshi)

    I did as you said, but the figure “1” always appears. In the code it is not.
    http://6g6.eu/sih2-error.png

    • This reply was modified 6 years, 7 months ago by demonshi.
    • This reply was modified 6 years, 7 months ago by demonshi.
    Thread Starter demonshi

    (@demonshi)

    error

    I did as you said, but the figure “1” always appears. In the code it is not.

    • This reply was modified 6 years, 7 months ago by demonshi.
    Thread Starter demonshi

    (@demonshi)

    I did as you said, but the figure “1” always appears. In the code it is not.

    Thread Starter demonshi

    (@demonshi)

    error

    I did as you said, but the figure “1” always appears.

    Thread Starter demonshi

    (@demonshi)

    Sorry, everything works. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Icons in php-file’ is closed to new replies.