The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Twitter Share Issue
MutantWizard
post Jun 20 2021, 04:53 AM
Post #1





Group: Members
Posts: 9
Joined: 23-January 14
Member No.: 20,266



Im a total noob at HTM but have managed to put together a small website by editing HTML from a template. I added a couple share buttons with code from respective social sites. Facebook works but having an issue with twitter. Tweet window pops up but the expected content is not pre-populated into the tweet. Have been mulling over it moving it around for days and still the same issue. Could someone please let me know what Im doing wrong.
CODE

        <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="link" target="_blank" data-show-count="false"  
             data-text="Tet to be populated" data-href="https://example.zil" data-hashtags="examplehash>
            <div class="title">Twitter</div>
            <div class="icon">
                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none" />
                    <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64
                    0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
                </svg>
            </div>
        </a>
        <script async defer crossorigin="anonymous" src="https://platform.twitter.com/widgets.js"></script>
        <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fexample.zil%2F&src=sdkpreparse" class="link" target="_blank">
        <div class="title">Facebook</div>
            <div class="icon">
                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none" />
                    <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64
                    0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
                </svg>
            </div>
        </a>
        <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0" nonce="etHBdW1Q"></script>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
MutantWizard   Twitter Share Issue   Jun 20 2021, 04:53 AM
pandy   I get asked to login at Twitter. And I can't s...   Jun 20 2021, 11:09 AM
MutantWizard   I get asked to login at Twitter. And I can't ...   Jun 20 2021, 12:47 PM
pandy   Yes. Do you expect us to register?   Jun 20 2021, 02:46 PM
MutantWizard   Solved   Jun 20 2021, 04:32 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 11:03 AM