timm49
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: White screen after adding custom post type supportSo I’ll mar it as solved btw ??
Forum: Fixing WordPress
In reply to: White screen after adding custom post type supportThis is why I ask questions on forums – somehow always right after doing that I’m able to fix it myself…so weird.
I still don’t believe the error was actually because of this, but this is what fixed it – there were 2 empty lines (created by using <enter>) at the bottom of the functions.php file…
Really..? That could be it? I can’t believe it but hitting enter at the bottom of the file again, and the error is back!
Forum: Themes and Templates
In reply to: WP puts external links after domain's URL?Sorry, forgot to use
<a href="<?php echo get_the_content(); ?>"<?php the_title(); ?></a>
Forum: Themes and Templates
In reply to: Archive page sometimes not workingHey, thanks for the response!
Yeah it is now, but like I said. 10 minutes before I posted it, it gave me the search bar…no idea what was going on :/
Forum: Themes and Templates
In reply to: php files confusionTrue that! Well, I’m mostly happy that I’m now slowly getting comfortable with the way WP is handling the file structure. I always try try try, and only afterwards read read read…not good in this case.
But it’s lovely that now within 15 mins I can easily add and style a simple sidebar. The more I’m going to build, the more advanced stuff I can do soon. And the most important thing – I’m loving working with it!
Forum: Themes and Templates
In reply to: php files confusionOkay cool, thanks! Yeah didn’t do a proper job yet, very basics – no sidebars / footer / 404 template and everything. But ech, it was a good way to make a first start ??
Forum: Themes and Templates
In reply to: php files confusionHey! Wow yo’re quick as always ??
Hehe no I actually started creating it from scratch yesterday, just for a test:
Very plain and simple still, didn’t even embed all the fonts yet and everything – I just needed sth to play around with to practice on creating a WP Theme.
Forum: Themes and Templates
In reply to: Child themes – change PHP files or use CSS?Ok stuff is getting more clear now, time to get myself crackin on a brand new theme and then lets see how it will work out!
I can especially imagine that for example, you have a promotional thingie on ur website, I dunno, maybe sth like “Early Bird discount! Sign up Now!”, in the shape of a sticker or sth. In that case, if u wanna give it a great look it sometimes just has to be an image – you can give them the option to hide it, but for new promotions in the future they’ll simply have to call u unless they have someone with Photoshop skills or sth…
Forum: Themes and Templates
In reply to: Child themes – change PHP files or use CSS?Do you actually make everything maintainable for end users, or do you also have “static” elements sometimes? Sometimes I see sites and think, ok coding it would be hard, obviously not impossible, but give some “dummy” rights to change it will be a huge risk for destroying the site.
Probably depents on the customer – but I have a feeling if u ask them if they want full control or not, 90% will think they want to…
Forum: Themes and Templates
In reply to: Child themes – change PHP files or use CSS?Yeah, I guess it’s hard to put a number on it….in this case I think I should’ve created a new theme from scratch – since the website is sooo simple, I didn’t need any advanced features of the parent’s theme. And I guess that’s basically the reason to create a child theme, to make use of those features?
Ok it’s done now – but just for a good practice I think I’m gonna put it in a totally new theme, see if I can work it out ??
What I’m often also struggling with – and again hard to judge – is how far to go when we’re talking about “customer friendly backend”.
This website was for a friend, a website for his band. For example, I created a custom post type with custom fields. So he just has to type in the date, venue and city and everything is posted in a structured layout by using “archive-gigs.php”.
It would’ve saved me another, in my case at least hour, if I would’ve just created a normal page, and let them play around in the WYSIWYG editor.
It’s a shame my company doesn’t use CMS’s, I’d love to learn that stuff. The more user friendly the better of course – but you also have to draw a line and maybe assume they can do at least a little bit…
Thanks again for your help!!
Forum: Themes and Templates
In reply to: Child themes – change PHP files or use CSS?Thanks for your quick response and clear answers! One question I forgot to ask, and you’re already mentioning it:
Aiming for as few .php changes as possible is definitely a Good General Rule when creating a child theme.
I’m quite new with developing themes (in this case, just child themes even…). I always hear people saying that but I’m wondering, what’s “as few as possible”?
Someone asked me to put his super simple (not too pretty) website in WP. It was so simple and empty, but sooo different from both twentyten and twentyeleven, that most of the work was in changing the default design. (in this case I probably should’ve considered creating a standalone theme – but now the job was done within 4 hrs)
For example, he had a vertical navigation bar on the left, instead of the horizontal navigation bar in the header like the parent’s themes have. So in this case I already “needed” header.php and sidebar.php, just to move the navigation from the header to the sidebar.
Any suggestions on that maybe? Should’ve done that differently?
I ended up with this folder structure of my child’s theme:
archive-gigs.php
content.php
footer.php (totally empty so could’ve done it by using CSS)
functions.php
gigs-posttype.php
header.php
index.php
page.php
sidebar.phpLooking back at it, I guess it’s waaay to much…I’d like to learn more about that, thanks!
Forum: Themes and Templates
In reply to: Category Page for Custom Post Type?Nice, just for me, so I can use it for myself also in the future, in which file did you put this code?
Forum: Themes and Templates
In reply to: Category Page for Custom Post Type?Maybe there’s sth useful here:
Forum: Themes and Templates
In reply to: Category Page for Custom Post Type?As far as I know, with a file called “archive-phones.php” based on an existing archive.php file, a url like this should display the nokias:
https://www.mysite.com/phones/nokia
I’ll look in at it tonight when I have access to my own files
Forum: Themes and Templates
In reply to: Category Page for Custom Post Type?That’s that archive php file? Try to remove (save it somewhere else of course) that file and see what happens, I think you only need the file if you wanna adjust stuff like the title etc.