ssm501
Forum Replies Created
-
Forum: Plugins
In reply to: [Dynamic Widgets] so confused: display tags specific to languageOoh, I see. Thanks!
Forum: Plugins
In reply to: [Dynamic Widgets] so confused: display tags specific to languageOops, sorry for not being clear. I know that DW can’t translate my tags (I have manually translated each tag to their respective languages using WPML). But I thought that DW was supposed to make it so that it can hide/show certain tags according to the language parameter? No? Then how does DW’s Languages feature work? (I see it as an option…)
Nevertheless can you please still give me a step-by-step tutorial on how to use DW to customize my sidebar or point me to some other websites where this is further explained? I don’t know why but I’m still confused on how to use DW… 🙁
Forum: Themes and Templates
In reply to: How to change header image in alternate stylesheet?Thank you so much for your answer and apologies for not responding sooner. I had to take a few days out to read up on child themes and the wp loop.
Following this useful guide, I created a child theme folder that sits alongside my original theme folder. So in “…wp-content/themes” I now have the original “photocrati-theme” and “photocrati-child” theme folders. In my child theme, I copied and pasted the header.php, index.php, functions.php and style.css from the original. Do I need to add anything else? Should I add the loop.php? According to this, it should be in the “…/wp-includes” but I can’t seem to find it….
Anyways, so I understand that I need to modify the child header.php so that it tells it to grab whatever ‘custom_logo’ image is specified in the corresponding stylesheets so that on the default style.css (dark background), the “header_imgdk” will be displayed but when on white.css (alternate white background), the “header_imgwht” will be displayed. Right? But while I understand conceptually what is supposed to happen, I don’t know how to write this up as a code…
Currently the only way I can change the logo image is by uploading it using the “dynamic styling” feature. And then I would turn it off in order to modify the other files. I’m told that this is because “when a new logo is uploaded, it assumes the active roll in that attribute column of the table – so its URL is hard-coded in the markup when the page begins the loop.” But where exactly this is and how this can be changed, the support representative does not quite know. I also stumbled upon this older thread that I thought was sort of relevant but failed to fully understand it.
Here are links to the original header.php and index.php in their entirety. (sorry, for the untidiness of the coding…)
Any assistance would be greatly appreciated! Thanks!
P.S. I am using the photocrati theme.
P.P.S. I tried the “image sprites” method but that didn’t work. Image sprites worked on other parts of my blog (such as the sidebar) but not with the header/logo image.