My new theme! Ajax & Vertical posts
-
Hi all
I worked the last two days on my very own theme. I was tired of the long columns and all that scrolling at the frontpage. In my first attempt to write a vertical scrolling JavaScript i failed on all the bugs and browser issues. Also the whole design was buggy in IE cause i was using alot float-left/right, position etc..
Frustrated, i was checking out the www.remarpro.com site once again and stumbled over that vertical scrolling in the a€?themesa€? section and thought: a€?hey, thata€?s exactly what i was looking for and yes, ita€?s crossbrowser compatiblea€?. that was the point for me to get started. I quickly put together some basic index loop and started testing. i had fast success. ita€?s now possible to navigate the last 10 posts vertical, using the links going from 1 to 10 above the frame.
Since i needed to get rid of the ugly default scrollbars, i used overflow:hidden and put in a horizontal-scroll javascript on the left of that iframe with all the post in it. Problem solved, looking good, working on IE and FF. ??
AJAX; I was impressed by that renovatio theme from a€?fxa€? and thought on how to implement that type of navigation into my kinda “static scrolling” thing (fixed width/height). the intention was the combination of both to get the most out of the new compact design. it worked out! I simply put my iframe + navigation into the AJAX container. This way it gets replaced if someone is using the normal AJAX links from the sidebar. ??
The comment_popup_links within the iframe gave me a small headache. Of course i didna€?t want to load the comments in the iframe. Wild thoughtsa€| but then i remembered an HTML-tag called a€?BASEa€? and that was my solution. Instead of modifyin the wordpress functions i simply use [BASE target=a€?_parenta€?]. That way all plain HREF links are now targeting the container and not the frame.
Where are all the other links like a€?categorysa€??
I thought they are of not worth to be seen FIRST. Visitors mostly come for the new posts and not for the old ones. I put Archive, Categorys and Blogroll into a second & hidden sidebar, which makes my theme basicly consist of three columns. You can access that a€?old stuffa€? part by clicking on a€?morea€|a€? at the left sidebar.ENOUGH! ?? i will stop talking “binary” now.
Please head over to my website located at https://www.m3nt0r.de/blog/ and tell me how you like it and if you enjoyed the navigation, colors, etca€|
Thanks for your time in advance.
If you wanna know more details, contact me at any time. I made a copy of this Topic on my Page with commments enabled: https://www.m3nt0r.de/blog/?page_id=191
PS: i’m german, excuse typos etc.. ?? my site is in german aswell. i hope you get the feeling for it anyways.
- The topic ‘My new theme! Ajax & Vertical posts’ is closed to new replies.