sethhay
Forum Replies Created
-
#content-container img {
height: auto;
max-width: 100%;
-webkit-box-shadow: 0px -5px 15px 0px rgba(0, 0, 0, 0.35);
-moz-box-shadow: 0px -5px 15px 0px rgba(0, 0, 0, 0.35);
box-shadow: 0px -5px 15px 0px rgba(0, 0, 0, 0.35);
}This section was the culprit, I was giving every image in my posts/pages a max-width for responsive design.
It was an image max-width CSS issue on my end for my custom theme. That fixed it. Thanks for the tip!
Forum: Hacks
In reply to: Unique Headers for Tags/Archives/Category TemplatesBack again (sorry!). I was able to get quite the distance with the $_SERVER code, though I ran into a little issue when going from “archive.php” to “single.php” (single post). Apparently going two levels deep, code gets ignored and no navigation shows up.
Below is what I have thus far.
<?php if (strpos("http://web.com/usa/", $_SERVER['HTTP_REFERER']) !== false) { echo get_template_part('nav','template'); } elseif (strpos("http://web.com/uk/", $_SERVER['HTTP_REFERER']) !== false) { echo get_template_part('nav','uk'); } ?>Forum: Hacks
In reply to: Unique Headers for Tags/Archives/Category TemplatesExcellent!
Thank you esmi for the updated template path fix and thank you bcworkz for the server script.
Forum: Hacks
In reply to: Unique Headers for Tags/Archives/Category TemplatesWhat is an alternative? Also would that alternative work for what I need?
Forum: Hacks
In reply to: Unique Headers for Tags/Archives/Category TemplatesInteresting. I should have explained my example better. Instead of colors, I want to use template php file like the following:
<?php include (TEMPLATEPATH . '/nav-usa.php'); ?>
If coming from a page using a page with nav-usa.php.<?php include (TEMPLATEPATH . '/nav-uk.php'); ?>
If coming from a page using a page with nav-uk.php.