Uh Oh Spaghetti Os
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Linking to a page without hardcoding the URLSurely, then, if bloginfo(‘url’) generates your homepage url, the code you supplied would direct you to https://www.site.com/home/desiredpage resulting in a 404?
EDIT:
Just tried it out, guess that isn’t how it worksThanks again for the help, guys ??
Forum: Fixing WordPress
In reply to: Linking to a page without hardcoding the URLDon’t you use that to access things from the theme folder though?
The page templates are there, but not the pages. Is that correct to say?Although reading that page, it looks like the site_url() function might be what I’m looking for.. I’ll see if I can get this to work
Thanks for your help!
Forum: Fixing WordPress
In reply to: Linking to a page without hardcoding the URLI originally (ironically) wanted to avoid hardcoding the URL to avoid spending unnecessary time changing all my links when I swap my site to a different domain
I suppose now it all seems moot, I’ve probably spent an equal amount of time trying to avoid wasting time! Lol
Forum: Fixing WordPress
In reply to: Linking to a page without hardcoding the URLThanks for the guidance
Does any of this make sense to you?
I can’t make head nor tail of itobject(WP_Post)#17 (24) { ["ID"]=> int(32) ["post_author"]=> string(1) "1" ["post_date"]=> string(19) "2013-05-02 10:40:29" ["post_date_gmt"]=> string(19) "2013-05-02 10:40:29" ["post_content"]=> string(2104)
(this is what was returned from var_dump)
Forum: Fixing WordPress
In reply to: Linking to a page without hardcoding the URLThanks for the replies
Could you shed some light on what you mean by “var_dump that function”?
I’m kind of new to WordPress and all that stuff so I’m not entirely sure what that isForum: Fixing WordPress
In reply to: Linking to a page without hardcoding the URLAh, right.
What I want to do is to return a link to the page so that I can avoid having to enter the full URL for the same thingIs that possible at all?
Forum: Themes and Templates
In reply to: Changing the matched CSS rules of an objectIsn’t that just the old wive’s tale fed to people new to coding so that they have something to fall back on if they destroy everything? Haha
I always keep backups of everything important, including of the most recent changes just in case
I mean, it probably is better to make a child theme, but I’m a real thrill seeker
Anyway, ta muchly for the help, monsieur Yogi. You truly are smarter than the average bear
Forum: Themes and Templates
In reply to: Changing the matched CSS rules of an objectAhaaaa
Only remaining question is where do I put the CSS to apply to each of these?
They’re generated through the WooCommerce CSS (which is a travesty to behold), but if I put them in my theme’s style.css, would that work as well?
Forum: Themes and Templates
In reply to: Changing the matched CSS rules of an objectSorry, may not have been too clear here, the buttons on the linked site are fine
But if you inspect the text fields, they are all have the same ‘Matched CSS rules’ (Chrome’s Inspector’s words) which means I can only change the styling of all of them or none of them
I don’t think they actually have classes or id’s, they’re just constructed by WooCommerce’s CSS and are automatically labelled as…
.woocommerce form .form-row.validate-required.woocommerce-invalid input.input-text, .woocommerce-page form .form-row.validate-required.woocommerce-invalid input.input-text
This isn’t set in the CSS, and it isn’t set by me. I can’t, for the life of me, figure out where they’re getting these attributes
Any idea?
Forum: Fixing WordPress
In reply to: How to remove "open in new window" text?Could you please post a link to your site / the code you’re having trouble with?
Forum: Fixing WordPress
In reply to: Adding multiple text areas?In case anyone facing the same issue finds this, I ended up putting the paragraphs in div tags and styling them appropriately
Kind of pseudo-resolved
Forum: Fixing WordPress
In reply to: Using images without uploading them through the admin panelI don’t know how I never managed to find this before, but I just stumbled upon some kind of ninja page through Google that explains my situation
So, basically, the trick is to use the following:
<img src="<?php bloginfo('template_directory'); ?>/images/imagename.ext">
Here’s the page, in case anyone else has this issue and finds this post:
https://www.brightcherry.co.uk/scribbles/wordpress-get-image-path-relevant-to-theme/Thanks again for the reply, alchymyth
Forum: Fixing WordPress
In reply to: Using images without uploading them through the admin panelThanks for the reply
I’m actually using twentytwelve, but when I’m trying to link images from the /images/ directory, they always appear as a broken linkInspecting the element shows the image link, but when I click on that, there’s a big red circle with a 1 in it next to the name, and no image
I then try linking an image that exists, but it creates a new instance of the image and comes up with the same ‘1’
https://screencast.com/t/Rtib34Cmwd
EDIT: Forgot to add this in:
The way I’m calling this image is:<img src="/images/green_smiley.png">
Is this the correct syntax, or is there something I’m missing?
Forum: Fixing WordPress
In reply to: Adding multiple text areas?What I basically want to do is make it so that a third party can add information to various parts of the page using the same text field
Not sure how useful a link would be here, I’m not actually having an issue with my website, I just want to be able to do something like this:
HEADING
Paragraph 1*Videos and widgets*
SUBHEADING
Paragraph 2But I’m curious to know if there’s a way to do that without adding the paragraphs into the template for my page, so that a third party can change it to whatever they want without possibly damaging the site
Forum: Themes and Templates
In reply to: Trouble with submit buttonsDouble post
If anyone stumbles upon this and is looking for a solution, I basically went into the template file that was creating the button, and changed its class to something else, then set formatting rules for that in the CSS