I'm new to the world of wordpress, I've written CSS stylesheets for livejournals and tumblrs before, but this is my first time making a self-hosted site on wordpress.
I posted on here about a week back and was recommended to make a child theme rather than directly edit the theme I've used as a basis for my own edits (WPSHOWER's Sight). I have done this, but there are some changes I think I'm only going to be able to do by uploading copies of the relevant php files to the child theme's folders and making edits. Of course I could be wrong, any and all tips and feedback are appreciated!
Site Link: http://www.hookturnmelbourne.com
1: Since making the child theme, something has gone wrong with the menu navigation: when the "Culture" drop-down menu displays, it displaces the slideshow. I can't work out what it is in the code that is causing this, as when I edited the original css sheet this didn't occur, and I didn't add any extra code to this section when transferring it to the child theme.
2: The slideshow, content and sidebar are all contained in a div named
.container. I want to make it so that the sidebar is in its own div so that it can be displayed alongside both the slideshow and the content, and span from the navigation menu to the footer.
3: I'd like to permanently disable comments, and thus remove that functionality from the theme.
4: There are social links in the header of each individual post. I'd like to move them to underneath the main content of the post.
I hope that this is all clear and makes sense, thank you in advance to anyone who reads this and can help me learn how to make my site work!
Haven't time to answer in
Haven't time to answer in depth but here's some pointers.
One of the principles of the WP api is the template hiearchy, thus you should not be afraid of 'overloading' theme files that is copying a file to your child theme that is how you will make necessary edits without directly changing the parent theme files, thus you can grab a copy of page.php and make any changes as necessary or conversely copy the file rename it to page-page_slug.php in order for WP to use it for a specific page.
comments are controlled in the first part via the dashboard enabling /disabling comments on a per post/page basis, however the template files call 'comments_template( '', true );' so the easiest route to removing comments is simply deleting that template call or create a new template named file i.e a page-no-comments.php and in that you declare the file as a template in the header
* Template Name: no-comments
That is now a template that you can select for any page you create and those pages will have no comment call.
At all times the WP codex is your friend and has loads of examples on how templating works.
Thank you; slideshow position tags
Thank you Hugo, your pointers really helped, I find that I'm now able to decipher the function of each line of php and am understanding how a Wordpress css stylesheet works much better
I still seem to have one main problem at the minute though. There is some code in the slideshow somewhere that is pushing down the sidebar (rather than allowing the sidebar to display alongside it). Currently the
.slideshow div contains the command
position: relative;. If this is changed to
position:absolute; the sidebar displays alongside it as desired, but the "latest posts" section disappears. On a single post page, the sidebar is positioned correctly.
You mustn't use position
You mustn't use position absolute, the reason it appears to work is due to the fact that elements positioned that way are taken out of the flow, that is they no longer see elements around them nor do any other elements see it, it is simply placed in a spot on the page and this has consequences as you have found.
You sound as though you need to float the slider and manage it's width to allow the sidebar to sit alongside it.
Thanks for your reply,
EDIT: Actually, I just worked out how to wrap the slideshow and "latest posts" into a separate div which when floated left let the sidebar move up.
Thank you so much for all your help Hugo
Nice information on the
Nice information on the themes of word press and i would suggest people to get some good themes from the link below as there are many of the options available for all the users.
Link removed ~hugo
Of course I could be wrong, any and all tips and feedback are appreciated!
Link removed: If you have something constructive to add to the thread please do so but simply adding links could be construed as simply SEO gaming, you may have signature links after a qualifying period of posts made.