Forums

DOMTab is acting weird! (3 posts)

  1. Faramarz
    Member
    Posted 11 months ago #

    Hi,
    I'm working on a theme for my blog and I am trying to use DOMtab feature in my blog. My theme is a two column page, main body on the left and the sidebar on the right. The tabs are working properly in the sidebar the only problem is when I'm on home page and when I click on comment link at the bottom of each post, I get to a page with no main body section, the sidebar get shifted to the left section and the "sidebar" and "header" and "footer" is all you can see, there is no "main page" (post), when I look at the source code, I can see that the "main page" information (post) is there, it's just not showing on the web site's front-end, first I thought it's a CSS issue but I checked all my markup and CSS but everything with HTML and CSS is fine, I even deleted the link to CSS in the header but the error was still there until I deleted the link to DOMtab js file and the error was gone. Looks like the DOMtab's js file doesn't like my theme or something. Do you guys have any idea why? Any help is much appreciated. The blog is not live yet, here are two screen shots:
    Home page
    When I click on comment link at the bottom of each post

  2. Faramarz
    Member
    Posted 11 months ago #

    I fixed this, on line 55 I changed display: none; to display: block;
    parentMenu.getElementsByTagName(domtab.contentElements)0.style.display=’block’;
    The blog still works and so the DOMtab.

  3. Randa
    Member
    Posted 8 months ago #

    Thank you for posting this solution! Very helpful to me today.

Reply

You must log in to post.

About this Topic

Tags