datdesignguy
Forum Replies Created
-
Forum: Hacks
In reply to: How do I create a wide Widget Options Form?Thank you!
Forum: Fixing WordPress
In reply to: Problem Building Image SliderAre you attempting to build a featured posts style slider or a slider that will display only images attached to a specific page?
The tutorial you linked to above is intended to demonstrate how to build an image slider for display on a specific post/page by building a query (using the code above) that pulls the attachments specifically for that page.
The reason the above code is displaying nothing when you attempt to add a category argument is most likely because attachments don’t get category assignments.
If you would like to build a slider for a home page, where it displays the featured images for a select group of posts, you’ll need different code, I’m afraid.
Let us know, and I’ll see if I can help you out
-greg
Forum: Fixing WordPress
In reply to: Can't figure out table background CSSMost welcome ??
Forum: Fixing WordPress
In reply to: Can't figure out table background CSSYour theme has the following css code:
tbody tr:nth-child(even) td, tbody tr.even td { background: #E5ECF9; }
Add (at the end of your css file, or if you’re using a child-theme, in your child’s css file:
tbody tr:nth-child(even) td, tbody tr.even td { background: black; }
Hope this helps
-greg
Forum: Fixing WordPress
In reply to: Quick Theme / Function questionYour function doesn’t ACTUALLY require any arguments since you’re already pulling in the
$post
variable by settingglobal $post
in your function.So I’m wondering if perhaps it would make more sense for you to attach your
determine_thing
function to a standard WP action such aswp
orwp_head
.Your function doesn’t need to return anything either if you take this approach, as you’ve already set the
$thingType
variable to global as well.I hope this gives you some ideas. Be sure and let us know what solves your problem!
-greg
Forum: Themes and Templates
In reply to: Strange search bar borderHmmm… that could be any number of things. I use very similar code to what I pasted above all the time without issue. You may need to try using element-inspector and/or firebug.
If there are any floated/absolutely-positioned elements nearby, it’s possible you may have something overlapping the clickable area to activate the text field. I had that problem before and it took forever to solve!
Without being able to look at your site myself, I’m afraid I can’t point you in the right direction. I’d need to be able to peek at your source and css.
Forum: Themes and Templates
In reply to: Strange search bar bordertry this code for your css:
input#s { width: 160px; /* Width of image minus the padding to clear the search icon on the left */ height: 29px; padding-left: 26px; border: none; outline: none; background: url( Images/Searchbar.png ) no-repeat; }
Forum: Themes and Templates
In reply to: twentyeleven background positioningbecause twenty-eleven positions the background by adding the css rules to wp_head(), I might recommend that you either, a) manually set up your bg image using css (preferred) or b) manually insert the background positioning css after the call to wp_head() in your child theme’s header.php file.
That’s my two-cents anyway. Hope it helps!
Forum: Themes and Templates
In reply to: comment_form function confusion!Hi swthate,
I feel your pain. I went through the same kind of struggle when I had to tackle a very customized comment section for a theme I did last year for a client.
Here is a post from Justin Tadlock I found that finally got me moving again: https://justintadlock.com/archives/2010/07/21/using-the-wordpress-comment-form
I hope this helps you like it did me!
Forum: Fixing WordPress
In reply to: Remove separator between meta in postsAny chance the “|” could be getting injected via css? Perhaps an :after pseudo-selector or maybe it’s even a right border? Just some ideas. The code snippet you pasted above doesn’t seem to be much help.
I believe that it’s possible the $result array reference in line 4 of your snipped could also be getting transformed using php’s
implode()
function, where the separator could be a pipe.There’s a few ideas for you, I hope one of them helps!
Forum: Fixing WordPress
In reply to: Content won't display on custom page templateYou’ll need to read up on CSS Media Queries for that bit. It can be a bit hairy.
Also I recommend reading up on Responsive Design.
Forum: Themes and Templates
In reply to: Applying a template to page in a posts archive pageI’ve been known to accidentally transpose a digit-or-two when hard-coding ID’s. After looking at your code, myself, I can’t figure out why it’s not working.
Forum: Themes and Templates
In reply to: Applying a template to page in a posts archive pageThis might sound silly, but are you sure the page id is valid? The only reason I ask is because if the page is not found get_page will return a null value.
Forum: Themes and Templates
In reply to: Twenty Eleven, How to change background color of featured postsHi GnosticGirl…
If you’re just wanting to change the BG of the featured posts section, you would actually need to do something a little bit different than what’s been described above.
For starters, let’s tackle the easier of the two requests, which is changing the wording of “Featured Post” to “Featured Article”…
Copy the showcase.php file from your parent-theme into the child theme.
Now open the file and find the line where you wanted to replace “post” with article, make the edit, save, and upload. That should take care of that little change.
To get rid of the white background, simply add this line to the bottom of your child theme’s style.css file:
.featured-posts section.featured-post { background: transparent; }
Give that a go and let me know if it solved your problem.
– Greg
Forum: Themes and Templates
In reply to: Applying a template to page in a posts archive pageWhen you visit the permalink for the page you want to borrow content from… does the content show up there?