template loading issue...

Permalink 1 user found helpful
Hello everyone!

I have a slight issue I can't seem to resolve. you may notice that sometimes the site loads properly...and other times, it only loads part of the css I am guessing. It is a converted template, and I did not convert it. I know there were a few issues in the past with conversions...I think it may be a simple issue, but I don't know enough to find out why. Anyone that is knowledgeable, I greatly appreciate your help!

Dennis

dennis007
 
ThemeGoodness replied on at Permalink Reply
ThemeGoodness
I think the css is not loading correctly because of the import. It should read
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('your_stylesheet_name.css')?>" /> in your header.php in the elements folder within your theme
dennis007 replied on at Permalink Reply
dennis007
I will try that...going in a meeting right now, I will let you know if that works...I really appreciate you taking the time to help me...you are AWESOME!
dennis007 replied on at Permalink Reply 1 Attachment
dennis007
I made the changes...to my template header.php. It seems better now. Would you mind taking a look at the file to be sure? I really appreciate everything, you are so great!!
dennis007 replied on at Permalink Reply
dennis007
Still loads a little choppy, but better...i wonder what else I have wrong in this file??...lol
ThemeGoodness replied on at Permalink Reply
ThemeGoodness
Not a problem.

Wasn't able to get anything out of your text file sorry.

<style type="text/css">@import "/packages/theme_terrafirma2/themes/terrafirma2/typography.css";</style>

you will want to change this file as well to the above <link rel....> it still is at @import and it holds your typeography so that would be your paragraph, H1, H2 etc.

also can you attach a screenshot of the "wonky" stuff as it seems fine to me but I am not sure what you are wanting as an end result.
dennis007 replied on at Permalink Reply
dennis007
Hello again, and thank you so much...I guess I do not fully understand about changing the file you mentioned...will I have to change others as well? As for the "wonky" stuff...it is strange really, sometimes the right sidebar does not even load, nor does some additional styling from css. I really don't get it. Also, it is completely broken for those visiting with an outdated/previous browser. Is there a fix for that?...(I know that is a separate issue though).

I just think there is something wrong with a file somewhere that is causing the right sidebar not to load sometimes, and some of the other blocks on the home page. Any other suggestions would be really really appreciated...thank you so very much!!

Dennis
dennis007 replied on at Permalink Reply
dennis007
What should this line look like? (please)

Current

<style type="text/css">@import "<?php echo $this->getThemePath()?>/typography.css";</style>
jordanlev replied on at Permalink Reply
jordanlev
It should look like this:
<link rel="stylesheet" type="text/css" href="<?php echo $this->getThemePath(); ?>/typography.css" />
dennis007 replied on at Permalink Reply
dennis007
Thanks! I changed it, but it's still doing it...maybe you can have a look?
jordanlev replied on at Permalink Reply
jordanlev
I just ran your site through the W3C validator (http://validator.w3.org/ ), and it pointed out that you're using a div "id" in more than 1 place. "id"'s can only appear once in a page -- you should change those to "class"es (and then change your stylesheet so it refers to them with a dot instead of a pound symbol).

content-sbBlog-date
content-sbBlog-wrap
content-sbBlog-month
content-sbBlog-title
content-sbBlog-contain

etc.

So, instead of <div id="content-sbBlog-date">, you want <div class="content-sbBlog-date"> -- then in your stylesheet change #content-sbBlog-date to .content-sbBlog-date

There may be other issues as well, but that seems like a reasonable cause of it working in some browsers and not others (some browsers are more forgiving with mis-used HTML than others).
dennis007 replied on at Permalink Reply
dennis007
Yeah, that is an add on from the marketplace. If it helps, the site was having trouble in older versions of IE before I installed SB (Simple Blog).

Everything is going so well with the site, and I am a Concrete 5 lover for life...i guess I just don't have the knowledge to fix (or find) the little bugs that are causing this issue. This has been going on since I started using this Terra Firma template...we all love the template, but it is really having trouble. I don't know where to go from here guys and girls...thank you...
jordanlev replied on at Permalink Reply
jordanlev
That's a bummer -- sorry I couldn't be of more help. So is this issue occuring on other pages of the site as well (ones that don't have the blog on them)? If so, then yeah the problem probably isn't with the blog's html. But if so, you should be able to get tech support for that since it's a paid addon.
dennis007 replied on at Permalink Reply
dennis007
That's the weird thing...the blog was added a couple of weeks ago, but I had these issues before that...and the strangest thing is, it was only the home page. The CSS/page load issue was like this for a while, pretty much since I started using the template...and only on the home page/index.html. There is something wrong with that page, and it is not the blog, because it was already happening before. Hmmm...i wonder if it is another add-on, I just don't know...if you refresh the page, it usually fixes...sometimes you have to refresh several times though...thank you for everything.
jordanlev replied on at Permalink Reply
jordanlev
If by "loading choppy" you mean that page contents appear before the styling occurs, I think one solution to this is to move your css include either above or below the <?php Loader::element('header_required'); ?> (I can't remember which is the correct one, but if it's before it now, move to after, and if it's after now, move it to before).

HTH!
dennis007 replied on at Permalink Reply
dennis007
Hey Jordan! Good to hear from you...I actually already did that...it was really bad before I did that...thanks though, Bro!
Mnkras replied on at Permalink Reply
Mnkras
don't use @import
dennis007 replied on at Permalink Reply
dennis007
Okay everyone...i am at the point of pulling out my hair...I will pay someone if that will help me solve my issue...i made the above changes, and now sometimes the CSS does not load at all...just the html...but then is fine after refresh...the original issue is still there too...where the style sheet seems to not load the right sidebar, and only on the home page...the template is a conversion I added from the marketplace add-ons. This site is getting ready to be seen by thousands, as we are now going to broadcast over the satellites...i am really in a bind. I have attached the header/footer.php file for the template. If someone needs other files just let me know...i trust everyone here...please guys, help me...my job really depends on getting this resolved. Could it be an issue with my host...(maybe the server/sql database is not communicating well with my files?) just a thought...but I really don't know my stuff that well...also, it loads horribly in earlier versions of IE...which most people have for some reason...the site again is - - -thank you all/anyone for support...you don't know how much I appreciate it!!!
dennis007 replied on at Permalink Reply 2 Attachments
dennis007
here are the files...
dennis007 replied on at Permalink Reply 2 Attachments
dennis007
Also, here is the main.css and typography.css
ThemeGoodness replied on at Permalink Reply 1 Attachment
ThemeGoodness
This is what I see when I view the site.
dennis007 replied on at Permalink Reply
dennis007
Yes, that is what it is supposed to look like, but it does not always look that way...and also, what might be rendering it incorrectly when viewed in previous versions of IE? ...
ThemeGoodness replied on at Permalink Reply
ThemeGoodness
IE is the "fill in some obscene blank here" to all web designers. IE 8 has different issues than IE 7 so you have to check both and if its is IE 6 that you are shooting for as a lowest denominator you have my sympathy. Could be anything.
dennis007 replied on at Permalink Reply
dennis007
Yeah, IE really sucks...I don't understand at all why so many people use it...just want to plug and play I guess...no thinking required...they are the same people who use AOL STILL!!! lol
LucasAnderson replied on at Permalink Best Answer Reply
LucasAnderson
Here are my thoughts:

1. We know it only happens on the home page.
2. What's on the home page that isn't on any other page?
3. Where does the content stop when it fails?

Answer: The Recent Tweets Twitter block.

Try removing that and testing to see if the issue remains.
dennis007 replied on at Permalink Reply
dennis007
I will try that...that seems reasonable enough; although the email list sign up block is unique to the homepage also...I may try one, and then the other...that is a great idea...I wish these blocks were tested a little better for functionality, ya know? I really appreciate it...i will write back when I delete it.
dennis007 replied on at Permalink Reply
dennis007
I deleted it; it seems to load better now...I guess only time will tell...I deleted the history in browser, and reloaded it several times...seems to be working well.
ThemeGoodness replied on at Permalink Reply
ThemeGoodness
clear your site cache as well
dennis007 replied on at Permalink Reply
dennis007
I did that too...now I guess it's just a waiting game...lol...thank you everyone so so much! I really appreciate everything...i hope I'm not being a pain in the A**!

:)
LucasAnderson replied on at Permalink Reply
LucasAnderson
You're fine. My assumption is the Twitter block relies on external JavaScript (from Twitter) and if that gets overloaded or fails to load properly it can bugger up your site.

Best to find another solution.
dennis007 replied on at Permalink Reply
dennis007
Thank you so much! I hope everyone has a great day...please keep your fingers crossed...I will cross mine also!!..
ThemeGoodness replied on at Permalink Reply
ThemeGoodness
not at all glad lucas was able to help you out =D