Support Forum

Home Forums OceanPlaza WP Instagram Icon

All Wordpress Themes

This topic contains 3 replies, has 2 voices, and was last updated by  Support Team 1 4 years, 2 months ago.

  • Author
    Posts
  • #5393

    Splurgin
    Participant

    I would like an Instagram Option for the About / Team member Modules..

    How can I make this possible?

  • #5396

    Support Team 1
    Keymaster

    Splurgin, now it’s impossible too. But I try to find decision. It will take time. And I’ll inform you about result.

  • #5397

    Support Team 1
    Keymaster

    Can I clarify? Do you use shortcode for person? It seems that I found the solution!

  • #5398

    Support Team 1
    Keymaster

    You need to change some files. Go to directory \wp-content\themes\oceanplaza\includes\tinymce\, find file shortcoes.php, find next strings

            if (!empty($atts['digg'])) {
                $html .= '<a title="Digg" href="' . $atts['digg'] . '" ' . $atts['linktarget'] . ' class="fsoc zocial icon social-icon digg"></a>';
            }

    and add this code below

    		if (!empty($atts['instagram'])) {
                $html .= '<a title="Instagram" href="' . $atts['instagram'] . '" ' . $atts['linktarget'] . ' class="fsoc zocial icon social-icon instagram"></a>';
            }

    You must get this http://prntscr.com/46c7kf.
    Next step.
    In this directory find file customcodes.js and find this code (line 564):

    onclick: function () {
                        ed.selection.setContent('[person name="John Doe" picture="http://parasponsive.com/person.jpg" title="Developer" facebook="http://facebook.com" twitter="http://twitter.com" google="http://google.com" dribbble="" linkedin="" blogger="" tumblr="" digg="" flickr="" linktarget=""]Redantium, totam rem aperiam, eaque ipsa qu ab illo inventore veritatis et quasi architectos beatae vitae dicta sunt explicabo. Nemo enim.[/person]');
                    }

    and replace it to this one

    onclick: function () {
                        ed.selection.setContent('[person name="John Doe" picture="http://parasponsive.com/person.jpg" title="Developer" facebook="http://facebook.com" twitter="http://twitter.com" google="http://google.com" dribbble="" linkedin="" blogger="" tumblr="" digg="" flickr="" instagram="http://instagram.com" linktarget=""]Redantium, totam rem aperiam, eaque ipsa qu ab illo inventore veritatis et quasi architectos beatae vitae dicta sunt explicabo. Nemo enim.[/person]');
                    }

    So Instagram must appear in shortcode “Person”, when you’ll add it. If in exiseted post it will not appear, write it manually like on the screenshot http://prntscr.com/46cgau.

The topic ‘Instagram Icon’ is closed to new replies.