Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7789973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:27:12+00:00 2026-06-01T21:27:12+00:00

In my website I have a section where I generate HTML from a twitter

  • 0

In my website I have a section where I generate HTML from a twitter feed. Here is the php code that wraps the section in HTML:

    <p class="columns">
    <?
    require ("twitter-feed.php");
    echo generatetwitter();
    ?>
    </p>

the generatetwitter(); method returns this as a string:

    <li class="twitter">&#x201c;@<a class=" " href="http://twitter.com/lecrae">lecrae</a>: If people throw stones at you, pick em up and build something. <a href="http://search.twitter.com/search?q=%23stayfocused" title="#stayfocused" class=" ">#stayfocused</a>&#x201d;</li>

When the page generates it shows the code properly in the “View Source” option of Chrome and Firefox, but when I do “inspect element” it shows this

    <p class="columns"></p>
    <li class="twitter">...</li>
    <p></p>

So the class CSS isn’t getting applied to the twitter feed. I need the twitter feed to be in the p tags with the class defined.

Some points:

  • generatetwitter() returns the HTML in a string
  • I’ve tried having twitter-feed.php (the generatetwitter() method) echoing out the HTML directly, but it makes no difference. I’ve had the same results every time.
  • when the generatetwitter() method is overridden to return only a normal string “eg return “test”;” it works normally.
  • It seems that this doesn’t work if the generatetwitter() method returns anything but regular text (excluding HTML).
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:27:12+00:00Added an answer on June 1, 2026 at 9:27 pm

    Certain block level tags will close opened paragraph tags when nested, try using DIV or SPAN instead of the P tag as per my earlier comments.

    Nesting block level elements inside the <p> tag… right or wrong?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website which slides to a section called blog in my HTML.
i have a section in my website that needs to be toggled by clicking
I have a section of a website that sets a session variable. On another
I have a Section in my website called Recent Updates. in that I will
I have top section and footage section common on all pages of my website.
I have website on the server, which is not precompiled (with source code, so
I have a section on a website where I display a pdf inside a
I have written a small PHP framework and I want to make a website
I have next code block: $.post('page.php', function(data) { //data - full page info });
I have a mysql question. I have a news section on my website, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.