mortalwombat
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Strange Repeating Background-image behaviorAndrew: Yeah, that gradient is the repeating background-image. It repeats vertically, of course. I don’t see the issue in Chrome either.
esmi: It does look that way, doesn’t it? I promise it’s not any sort of jQuery I put in though. I started my theme based on the WordPress Naked theme, and so far have only made modifications to the php and css files.
Forum: Themes and Templates
In reply to: Strange Repeating Background-image behaviorOh sorry, should have been more clear. The background image is the nearly white part on the content. Like I said, It’s really light… scroll down and you will see the background change to green (assuming your browser is doing the same as mine are).
Forum: Fixing WordPress
In reply to: pulling the last bit of the URLAlso, I have just been playing with http://testsite.com/test/weddings/?gallery=children
passing variables that way is kinda ugly, but is it OK? How is it for SEO? Obviously, people can’t assume what the URL might be that way, which I never like, but since these pages are pretty far down in the tree, it’s not the worst thing ever, but I want to make sure Google can find the content OK.
Forum: Themes and Templates
In reply to: Return doesn't put variable where it belongsThank you guys so so so much! That did the job. I’m clearly going to have to read up more on the different wp functions.
Forum: Themes and Templates
In reply to: Return doesn't put variable where it belongsAlso note, if I hard code the string into the variable, things work fine:
function build_upperfooter() { $wtf = "http://mattandjentry.com/test/wp-content/themes/_mattandjentry2"; $upperfooter_output = ' <div id="upper_footer"> <div id="upper_footer_content"> <ul> <li class="social"><img src="' . $wtf . '/images/facebook_icon.png" alt="visit our facebook page" /><a targe="_blank" href="http://www.facebook.com/mattandjentry">Facebook</a></li> <li class="social"><img src="' . $wtf . '/images/twitter_icon.png" alt="visit our twitter feed" /><a targe="_blank" href="http://twitter.com/#!/mattandjentry">Twitter</a></li> <li class="social"><img src="' . $wtf . '/images/pinterest_icon.png" alt="visit our pinterest boards" /><a targe="_blank" href="http://pinterest.com/jentrydryden/">Pinterest</a></li> <li class="address">1451 Alvin Ct. * Sparks, NV 89434 | 775.332.9807</li> </ul> </div> <p class="copyright">© <?php echo date("Y") ?> Matt and Jentry: Photographers, LLC</p> </div>'; return $upperfooter_output; }Forum: Themes and Templates
In reply to: Return doesn't put variable where it belongsHere’s a little more info I have found when trying figure out what’s going on: I simplified the function DRASTICALLY to this:
function build_upperfooter() { $wtf = bloginfo("template_url"); }Now, I wouldn’t expect this to really do anything except define the variable, but it is printing it onto the page. Why is that?!
Forum: Fixing WordPress
In reply to: Shortcode Putting html in parent divYup, I am still stuck. I feel like there is something fundamental I am missing here. I have created a function for my Upper Footer, and it puts everything where I want it except for one small thing. I am using
bloginfo("template_url")to get the path to the images inside my template. It outputs the results of the template_url outside of the div, and puts the rest where it belongs, which results in a text display of the path the to template outside the div, and broken links inside the div. Here is my code.Forum: Fixing WordPress
In reply to: Shortcode Putting html in parent divFor my upperfooter.php, I have the file as an include so I can easily edit the one file should I choose to make a change going forward. I can have that in the functions.php, but it seems more organized to have a seperate php file for the code that makes up the upper footer. What would be the best way to accomplish that since include doesn’t work?
Forum: Fixing WordPress
In reply to: Shortcode Putting html in parent divAbsolutely nothing wrong with that! It works great. I didn’t know I had to do that though. What I don’t understand is why echo has the results that it does, and why return works better. I understand the fundamental difference between echo and return, but didn’t know it could create issues like that.
Can you explain the problem behind echo?
Forum: Fixing WordPress
In reply to: Shortcode Putting html in parent divMy functions.php (Note to esmi, return doesn’t allow any LI’s to get created, which leaves me with a blank slideshow)
My single.php file that is creating the issue
And lastly, the HTML that is currently being output
Thank you guys so much for your help. I clearly need to learn a few things 🙂
Forum: Fixing WordPress
In reply to: Shortcode Putting html in parent divOK, so changing echo to return worked for the slideshow gallery. Thanks!
However, the one that includes a php file with HTML in it is still having troubles.
Forum: Fixing WordPress
In reply to: Shortcode Putting html in parent divHmm…
One of the shortcode functions just includeds a php file that has some very basic HTML in it. This is one of the ones that is messing up.
One of the other shortcodes is echoing instead of returning. (I’m not really aware of the difference, but I will research that since clearly it’s important)
Forum: Themes and Templates
In reply to: Help creating a custom slideshowBTW Digital Raindrops – If you guys are looking for a good wedding photographer, I know some! :p
Forum: Themes and Templates
In reply to: Help creating a custom slideshowThanks for the input on the mobile stuff. I will definitely have to take those into consideration.
Forum: Themes and Templates
In reply to: Help creating a custom slideshowThanks for the heads up on the IE7 view. I will probably have some custom CSS for mobile, just to keep things pretty, but I won’t have a full mobile site. I tend to think that’s a silly requirement for a lot of sites. Mobile sites are great for sites that have a content people want to keep up to date with – News, shopping, etc. But sites for business like photographers are very much about the visual aspect. I would rather them see the site on the phone the same way they would on the computer.