Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Want to use inline h2, h3, h4 tags in the body text


  #1  
Old Mar 3, 2011, 09:09 PM
lmartindesign
 
3 posts · Mar 2011
So I've added display:inline to my h2, h3, h4, h5 tags in the custom css; however when looking at the produced code on the page, wordpress is adding a <br> before the <h2> tag and <p> after. Is there a location that it's hardcoded to remove those defaults? I have no issue with using the inline coding with regular html pages.

this is my code:
Code:
Our Great Western Transportation team has more than 100 years of trucking experience within the <h2 style="display:inline!important;">LTL Trucking</h2> and Full Truckload industry. We specialize in the Flatbed Trucking, Refrigerated Trucking, Dry Van Trucking, Heavy Haul Trucking and Power Only Trucking areas.
And what WP generates:
Code:
 Our Great Western Transportation team has more than 100 years of trucking experience within the<br />
<h2 style="display:inline!important;">LTL Trucking</h2>
<p> and Full Truckload industry. We specialize in the Flatbed Trucking, Refrigerated Trucking, Dry Van Trucking, Heavy Haul Trucking and Power Only Trucking areas.</p>
  #2  
Old Mar 3, 2011, 10:31 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Why not just use something like the following?
Our Great Western Transportation team has more than 100 years of trucking experience within the
HTML Code:
<span style="font-size:24px; font-weight:bold;">LTL Trucking</span> and Full Truckload industry. We specialize in the Flatbed Trucking, Refrigerated Trucking, Dry Van Trucking, Heavy Haul Trucking and Power Only Trucking areas.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Mar 3, 2011, 10:35 PM
lmartindesign
 
3 posts · Mar 2011
Quote:
Originally Posted by lmilesw
Why not just use something like the following?
Our Great Western Transportation team has more than 100 years of trucking experience within the
HTML Code:
<span style="font-size:24px; font-weight:bold;">LTL Trucking</span> and Full Truckload industry. We specialize in the Flatbed Trucking, Refrigerated Trucking, Dry Van Trucking, Heavy Haul Trucking and Power Only Trucking areas.
I'm attempting to work in the H tags into the text because the client insists on having those be h tags. The way his site was originally done was that they had h tags with certain key words and commented them out which I can't believe would be good for SEO.
  #4  
Old Mar 4, 2011, 07:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That's something that wordpress is doing. You might want to post this question over at wordpress.org
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 4, 2011, 07:34 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by lmartindesign
I'm attempting to work in the H tags into the text because the client insists on having those be h tags. The way his site was originally done was that they had h tags with certain key words and commented them out which I can't believe would be good for SEO.
Actually I think it is bad for SEO as opposed to just being not good.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #6  
Old Mar 4, 2011, 09:03 AM
lmartindesign
 
3 posts · Mar 2011
Quote:
Originally Posted by lmilesw
Actually I think it is bad for SEO as opposed to just being not good.
Well yes I agree. Sounds like it's a wordpress limitation and not a theme limitation. Hence why I couldn't find the code to change.

Thanks.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing color of ALL but body text - headlines, "Read more" text, etc. satori Center area post/pages 3 Sep 18, 2010 07:47 AM
Add code after post text but before the tags section Wonderbaum Post-Kicker, -Byline & -Footer 2 May 22, 2010 07:02 PM
text in exerpt body instead of [...] peterf Excerpts, Read more, Pagination 1 May 31, 2009 07:05 PM
Changing a widget display from block to inline (Twitter Text Widget) Flur Sidebars & Widgets 2 May 7, 2009 12:45 PM
knock out for body text tekdiver500ft Atahualpa 3 Wordpress theme 4 Feb 4, 2009 01:43 PM


All times are GMT -6. The time now is 08:04 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.