Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Dr. Poz
Sep 8, 2003

Dr. Poz just diagnosed you with a serious case of being a pussy. Now get back out there and hit them till you can't remember your kid's name.

Pillbug
We had a Wordpress blog running on our old website. We have a new site on a new server now though, so we put the Wordpress blog behind a sub-domain of our current site. The problem now is that that linked files are longer where it thinks they are, so for example, the style sheet link in the main page still reads:

code:
<link rel="stylesheet" href="http://www.oursite.com/blog/wp-content/themes/thesis_16/custom/custom.css?010610-192059" type="text/css"/>
when it SHOULD read:
code:
<link rel="stylesheet" href="http://blog.oursite.com/wp-content/themes/thesis_16/custom/custom.css?010610-192059" type="text/css"/>
I tried searching around in the wp-config and the wp-header files, but I'm not much of a PHP guy. Any ideas as to what I should be doing?

Adbot
ADBOT LOVES YOU

simcole
Sep 13, 2003
PATHETIC STALKER
You should be able to edit your theme css by going to styling and looking at your header.php. I know you said you looked there, but that's where I know they are.

Dr. Poz
Sep 8, 2003

Dr. Poz just diagnosed you with a serious case of being a pussy. Now get back out there and hit them till you can't remember your kid's name.

Pillbug
I don't see any "styling" folders. My Wordpress install has 3 subfolders (wp-admin, wp-content and wp-includes) and the wp-blog-header contains only this:

code:
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */

if ( !isset($wp_did_header) ) {

	$wp_did_header = true;

	require_once( dirname(__FILE__) . '/wp-load.php' );

	wp();

	require_once( ABSPATH . WPINC . '/template-loader.php' );

}

?>
Can I just replace __FILE__? This seems prone to breaking unless I find and replace every instance of __FILE__. Do you know where __FILE__ is defined so I could just change its initialization?

SuckerPunched
Dec 20, 2006

That option is actually in the database. You can see what the current setting is with this query:

select * from options where option_name = 'siteurl';

The value for option_value is what you'll need to updated.

Ned
May 23, 2002

by Hand Knit
use wp_enqueue_style(); and get_bloginfo('stylesheet_directory');

And don't mess with anything outside of wp-content/ - that is the core and touching it will only lead to heartbreak.

Goodpart
Jan 9, 2004

quarter circle forward punch
quarter circle forward punch
quarter circle forward punch
rip
Does anyone have any experience with Artisteer?

I ask because while I'm pretty good with design, I know gently caress all about PHP and I don't have the know-how to actually construct a Wordpress site from the ground up that doesn't look like it's been pulled from the default design, no matter how much I try to pretty it up, so I want to know: how friendly is it with plugins?

Basically I want to try and recreate this VERY rough mockup (yes it's dodgy and yes it fits a little too well but humour me)...


Click here for the full 800x930 image.


...and I want to know if I'm wasting my time using Artisteer if the theme I make is just going to tank the minute I try to add plugins. I've only got the demo at the moment but if it'll do what I want it to, I'm gonna shell out for the full version.

Also, is there even a plugin for all the poo poo I want to include? I did a quick skim of the plugin database and found a few but a few more have eluded me thus far. If it came down to me actually needing to code something other than the setup I'd be completely hosed. I should also add that I'd like an automatic thumbnail generator so that I'm not having to save/upload 1000 variations of the same image just to get it to display properly.

That's a lot of poo poo to answer in one post but hopefully someone can help. Cheers :)

ScooterMcTiny
Apr 7, 2004

So I've recently started a wordpress blog, however the theme I am using is giving me troubles. I've decided to implement PressRow, but the theme was abandoned a while back and is missing some key features.

The theme is obviously not widget ready, and while I found a guide to making this particular theme widget friendly, it didn't seem to work for me. Also, there is no "previous posts" link at the bottom as far as I can tell, so once the posts are off the first page, there isn't an easy way to navigate to them.

Can anyone help me out?

The blog is https://www.whiskey-diet.com

cocteau
Nov 28, 2005

The best Darcy.

Goodpart posted:

I ask because while I'm pretty good with design, I know gently caress all about PHP and I don't have the know-how to actually construct a Wordpress site from the ground up that doesn't look like it's been pulled from the default design, no matter how much I try to pretty it up, so I want to know: how friendly is it with plugins?

Try Starkers rather than Kubrick or some other theme. It gives you the bare bones code without any CSS so you can build from scratch. There's also some good free online tutorials on how to build a theme that will help you understand what the bits of php are doing - once you understand the structure of the php files and the loop, cut and paste will get you a long way.

Broccoli Must Die!
Aug 12, 2004

Meow.
I'm running Wordpress self-hosted, latest version with Akismet & Bad Behaviour installed.

Is anyone else having a ridiculously large number of spam messages coming through? Just an increased attack or are the spam detection services really dropping the ball?

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I've just changed the way my site behaves, with child pages for portfolio items instead of a category. However, I tested it with both forms of display in place, and now I am stuck with mysite/portfolio-2/mypage in the permalinks instead of mysite/portfolio/mypage. How can i fix this?

Ned
May 23, 2002

by Hand Knit
Is there a page from before with the slug of portfolio? How are your permalinks for categories set up?

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
The permalinks are /%category%/%postname%/, there was already a category of portfolio when testing, so WP automatically gave the portfolio.php template [and its children] a slug of/including portfolio-2. Category deleted, all posts gone, reset the permalinks also to no avail.

RobertKerans fucked around with this message at 19:36 on Feb 1, 2010

Ned
May 23, 2002

by Hand Knit
You might need to go into the db and see if something has a post-slug of portfolio in there.

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
Ah well, unfortunately ended up dumping a series of posts to solve it; the portfolio was a set number of posts anyway, so it was just a [time consuming] matter of copying out the contents of custom fields. Just hoped there would be a simpler way around it, but just carefully altering the database entries didn't really do it, had to be brute force in the end. Cheers, though

Delicious Sci Fi
Jul 17, 2006

You cannot lose if you do not play.
So a golf league I belong to around here is starting up a bag tag system. Which is where there are so many bag tags ranked 1 though 50 and people play each other and whoever wins takes the lower bag tag (1 being best). They want to set up a wordpress site for tracking who has what bag tag and I was wondering if there is a plugin that could be used for the ranking system. It really just needs to be able to display all the members names and what rank they have and would (ideally) be able to be sorted by name or bag tag number.

Twiin
Nov 11, 2003

King of Suck!

Delicious Sci Fi posted:

So a golf league I belong to around here is starting up a bag tag system. Which is where there are so many bag tags ranked 1 though 50 and people play each other and whoever wins takes the lower bag tag (1 being best). They want to set up a wordpress site for tracking who has what bag tag and I was wondering if there is a plugin that could be used for the ranking system. It really just needs to be able to display all the members names and what rank they have and would (ideally) be able to be sorted by name or bag tag number.

You're waaaaay overthinking this. Just stick it in a plain-rear end HTML table and use jQuery tablesorter.

supster
Sep 26, 2003

I'M TOO FUCKING STUPID
TO READ A SIMPLE GRAPH
Anyone have any suggestions for a contact form plugin that can be called from a template file (e.g., with a php function)?

I tried Contact Form 7 as per Ned's suggestion and I love it - but it's kind of annoying have to use the [contact] shortcode stuff when my actual page content is blank and all in the template file. I really like how Contact Form 7 works though, very straight forward and easy to do settings.

Twiin
Nov 11, 2003

King of Suck!

supster posted:

Anyone have any suggestions for a contact form plugin that can be called from a template file (e.g., with a php function)?

I tried Contact Form 7 as per Ned's suggestion and I love it - but it's kind of annoying have to use the [contact] shortcode stuff when my actual page content is blank and all in the template file. I really like how Contact Form 7 works though, very straight forward and easy to do settings.

cformsII has a full API.

hmm yes
Dec 2, 2000
College Slice

Twiin posted:

You're waaaaay overthinking this. Just stick it in a plain-rear end HTML table and use jQuery tablesorter.

This. If you aren't sold on WordPress, you might also just be happier using Google Sites and embedding a Google Docs spreadsheet on the homepage. If they have a domain name, its pretty easy to set up Google Apps.

Delicious Sci Fi
Jul 17, 2006

You cannot lose if you do not play.

Twiin posted:

You're waaaaay overthinking this. Just stick it in a plain-rear end HTML table and use jQuery tablesorter.

Apparently I am. Thanks for the link to Tablesorter, that looks very nice.

Goodpart
Jan 9, 2004

quarter circle forward punch
quarter circle forward punch
quarter circle forward punch
rip
Finally got my site running. I've postponed all the feature article poo poo I wanted to include and will look to adding it later: for now I just want to get some content up and get going. Pretty psyched to get the news ticker running correctly. For the record I'm running with this one. Really easy to use.

One last thing before I go public though -- I want to move all my post categories to the menu bar, since it'd be wasted real estate otherwise. It also means I can free up some space on the sidebar for other stuff. Is there a way to do this?

I've read that the best way to do it is to create a blank post which has nothing but a link to the category in the title in HTML format. I tried it, and for some reason this happened:



My sidebar moved underneath the main content, and the link to the category moved off the menu bar to... god knows where and changed styles.

Somehow I get the impression there has to be an easier way. :psyduck:

Goodpart fucked around with this message at 08:59 on Feb 13, 2010

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt
So basically I'm totally new to this but slowly trying to teach myself and learn. I have two questions (for now) though regarding my blog in progress.

The blog is https://www.dclaiborne.com

In the header I would like for that image to take up the entire space including behind the search bar. It will also go behind the page tabs and I will edit the header to move the website name to another spot on the header. When I make the header image bigger it just pushes it further down and won't actually go behind the search bar.

Also how do I get the page links up top to stop being yellow? I would like for them to be transparent and just sit on top of that red header if possible.

KuruMonkey
Jul 23, 2004

Alfalfa posted:

So basically I'm totally new to this but slowly trying to teach myself and learn. I have two questions (for now) though regarding my blog in progress.

The blog is https://www.dclaiborne.com

In the header I would like for that image to take up the entire space including behind the search bar. It will also go behind the page tabs and I will edit the header to move the website name to another spot on the header. When I make the header image bigger it just pushes it further down and won't actually go behind the search bar.

Also how do I get the page links up top to stop being yellow? I would like for them to be transparent and just sit on top of that red header if possible.


If you're happy editing the template files, then the issue is as follows...

Your theme's header area is built from 2 divs the same width, the first has the search bar bits in, and the second is the "header" (has id="header") itself.
Your header image (which is an IMG tag, not a background at the moment) is in the header div, so won't cover the search bar. (and stuff won't go "over" it readily)

What you need, really, is a div that the menu div and the header div both live in, that has a background of your chosen image. Then the other elements will sit on top nicely.

The menu items are yellow because the div they are in:
<div id="pagemenucontainer">...</div>
has a yellow background set.

You want to be running firefox for this, even if you don't normally, and you want to be running FireBug; you then have a right click for "inspect element" which will give you a cleaned up hierarchy for the DOM and beside that a listing of all the CSS rules that apply to the element, which CSS file they came from and on what line. (it will also highlight the element on the page and outline the margins and padding for you)

Only registered members can see post attachments!

KuruMonkey fucked around with this message at 15:43 on Feb 18, 2010

hmm yes
Dec 2, 2000
College Slice
There are similar inspectors built into Safari and Chrome and you may prefer the way they look over Firebug.

KuruMonkey
Jul 23, 2004

atastypie posted:

There are similar inspectors built into Safari and Chrome and you may prefer the way they look over Firebug.

True enough; I'd not used either and you can only recommend what you know. The Safari DOM/CSS inspector doesn't have every feature of Firebug's as far as I can see (particularly line numbers for rules, as even in a single file the rules pertaining to an element can be widely dispersed). And "pleasing to the eye" is exceedingly low on my list of priorities for a debugging tool.

The Safari Javascript debugger, however, does look a huge amount better than FireBug's- I'm going to have to have a play - thanks for the nudge to go look!

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt

KuruMonkey posted:

If you're happy editing the template files, then the issue is as follows...

Your theme's header area is built from 2 divs the same width, the first has the search bar bits in, and the second is the "header" (has id="header") itself.
Your header image (which is an IMG tag, not a background at the moment) is in the header div, so won't cover the search bar. (and stuff won't go "over" it readily)

What you need, really, is a div that the menu div and the header div both live in, that has a background of your chosen image. Then the other elements will sit on top nicely.

The menu items are yellow because the div they are in:
<div id="pagemenucontainer">...</div>
has a yellow background set.

You want to be running firefox for this, even if you don't normally, and you want to be running FireBug; you then have a right click for "inspect element" which will give you a cleaned up hierarchy for the DOM and beside that a listing of all the CSS rules that apply to the element, which CSS file they came from and on what line. (it will also highlight the element on the page and outline the margins and padding for you)



Ok got the underlined portion taken care of easily.

Can you go into a little more detail regarding the top part you are talking about?

edit: Also there is one random yellow strip remaining to the right of those pages that when I click inspect element it doesn't take me to anything regarding that color. When I click view background image the image isn't even yellow. Where can I find that option?

Alfalfa fucked around with this message at 17:30 on Feb 18, 2010

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt
Another question.

I am trying to add a box on the right column that says "FOLLOW ME ON FACEBOOK!" or something along those lines. I want it to look identical to the RSS and Twitter ones above it.

Here is the code for that Twitter box (I think):
code:
<?php
    		if(get_theme_option('twitter') != '') {
    			?>
    			<div class="twitterbox">
    				<a href="<?php echo get_theme_option('twitter'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/twitter.png"  
alt="<?php echo get_theme_option('twittertext'); ?>" title="<?php echo get_theme_option('twittertext'); ?>" 

style="vertical-align:middle; margin-right: 5px;"  /></a><a href="<?php echo get_theme_option('twitter'); ?>"><?php echo get_theme_option('twittertext'); ?></a>
    			</div>
    			<?php
    		}
    	?>
What do I need to change to add in the Facebook one below it?

I would actually like to have separate RSS, Twitter, Facebook, YouTube boxes. The RSS and Twitter ones can be turned off and on inside the actual theme options but the other two aren't available directly through there.

Alfalfa fucked around with this message at 18:36 on Feb 18, 2010

KuruMonkey
Jul 23, 2004

Alfalfa posted:

Ok got the underlined portion taken care of easily.

Can you go into a little more detail regarding the top part you are talking about?

edit: Also there is one random yellow strip remaining to the right of those pages that when I click inspect element it doesn't take me to anything regarding that color. When I click view background image the image isn't even yellow. Where can I find that option?

Thats not actually going to be overly simple in your theme, not least as its using some CSS grid framework.

However, in essence what you have is this:

code:
<div id="wrapper">
  <div id="themenusection">
    <!-- menu stuff; many lines -->
  </div>
  <div id="theheadersection">
    <!-- header stuff, many lines, includes the image -->
  </div>
  <!-- rest of your main content area, many, many lines -->
</div>
Note: the ids I gave there are just to identify sections in the example, and are not those in the page; menu section doesn't have an id for instance :(

Both Menu section and header section are full width within the wrapper, and therefore header is lower on the page than menu.

What you want is:

code:
<div id="wrapper">
  <div id="wholeheadsectionwrapper">
    <div id="themenusection">
      <!-- menu stuff; many lines -->
    </div>
    <div id="theheadersection">
      <!-- header stuff, many lines, remove the image completely! -->
    </div>
  </div>
  <!-- rest of your main content area, many, many lines -->
</div>
Then you can set the background image of #wholeheadsectionwrapper to be your header image, and the menu section and header section will sit on it nicely.


Note: as with the firefox thing; I'm being entirely prescriptive and showing how I would do it. These kinds of things are cats; there are many ways to skin them.

Regarding the other question; I'm at home now, and don't actually run FireBug here. There will be a delay, but I should be able to find it in a while. And I'll detail how I found it for you, not just what I found...


Edit: actually there's not much to tell. Refer to the image in my previous post; that same element has a yellow border-right property. I'd make that the background color if I were you. (I've never set border-right: 4px solid transparent; on anything, try it, it might work) I'd generally be inclined not to remove the border just in case they (the theme writer) really relied on the extra 4px width that border gives.

KuruMonkey fucked around with this message at 18:43 on Feb 18, 2010

KuruMonkey
Jul 23, 2004

Alfalfa posted:

I am trying to add a box on the right column that says "FOLLOW ME ON FACEBOOK!" or something along those lines. I want it to look identical to the RSS and Twitter ones above it.

Assuming you know the code snippet you need to put IN the box, all you need to do is either:

below (or above, depending the order of boxes you want) the twitter box code you posted, just add:

code:
<div class="rssbox">
  <!-- your code snippet, greeting text etc, whatever your payload is -->
</div>
Because you're not making a new theme to distribute, just tweaking the theme for your site, that should be OK. ASSUMING the theme isn't doing any funky javascript that hooks onto the "rssbox" class. If it is, your new box will also be afected.

The alternate is to substitute "facebookbox" for "rssbox" above, and then go to the theme CSS and find every rule that references ".rssbox" and add ".facebookbox" to the selector.

Examples:
code:
.rssbox { ... }
.sidebar .rssbox { ... }
Becomes:
code:
.rssbox, .facebookbox { ... }
.sidebar .rssbox, .sidebar .facebookbox { ... }
Edit: I'm not saying those ARE the rules you need to find, but the comma bit and duplicate with a switched class is the principle you need to follow.

This is obviously a lot more work.

AND either way you now have to be wary of any update to the theme, as it will break your tweaks (all of them, not just the facebookbox)

You might want to read up on Child Themes which mitigate against this a little. (or a lot depending on the theme you use, but in the case of that one, probably a little)

KuruMonkey fucked around with this message at 18:57 on Feb 18, 2010

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt
edit: I'm trying a new template that will make things a ton easier.

I just have one question now :)

Under the widget sidebar area there is not a Featured Video option.

I can change the video or take it out completely under the theme options, but there is no way to move it around.

I would like to move my Find Me Elsewhere Widget above it but not sure how to do that in the code.

Alfalfa fucked around with this message at 21:23 on Feb 18, 2010

KuruMonkey
Jul 23, 2004
Dunno about any particular theme specifically, but in general thats going to be a case of picking through the relevant PHP file (maybe sidebar.php if its structured 'normally') and finding the chunk of code that makes the find me elsewhere block and cut/pasting it before the video section.

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt

KuruMonkey posted:

Dunno about any particular theme specifically, but in general thats going to be a case of picking through the relevant PHP file (maybe sidebar.php if its structured 'normally') and finding the chunk of code that makes the find me elsewhere block and cut/pasting it before the video section.

Thats the problem. I cant find it no matter what page I look in.
Here is the code pulled out of sidebar.php for Featured Video

code:
<?php if(get_theme_option('video') != '') {
			?>
			<div class="sidebarvideo">
				<ul> <li><h2 style="margin-bottom: 10px;">Featured Video</h2>
				<object width="290" height="220"><param name="movie" value="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1"></param>
					<param name="allowFullScreen" value="true"></param>
					<param name="allowscriptaccess" value="always"></param>
					<embed src="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="290" height="220"></embed>
				</object>
				</li>
				</ul>
			</div>
		<?php
I don't really see anything location wise in it or the others below it. It doesn't even have the other widgets/plugins I've added to the sidebar listed.

KuruMonkey
Jul 23, 2004
Whats the name of the theme? I can install it on my test install and take a look.

Broccoli Must Die!
Aug 12, 2004

Meow.

Alfalfa posted:

The blog is https://www.dclaiborne.com

What is the name of the font you used in the header image please?

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt

KuruMonkey posted:

Whats the name of the theme? I can install it on my test install and take a look.

http://newwpthemes.com/wordpress-theme/larisa/

Broccoli Must Die! posted:

What is the name of the font you used in the header image please?

I have no clue, but I can find out from the guy who designed it for me.

KuruMonkey
Jul 23, 2004
OK

That theme has just the one widget area, which currently comes after the social links, twitter box, video etc.

Your option is basically to move the widget area as a whole, by cut/pasting it around the sidebar.php file. (or in fact to cut/paste the other items around the widget area; see below)

The widget area code is this:

php:
<?
<ul>
            <?php 
                    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

                
                <li><h2><?php _e('Recent Posts'); ?></h2>
                           <ul>
                    <?php wp_get_archives('type=postbypost&limit=5'); ?>  
                           </ul>
                </li>
                
                <li><h2>Archives</h2>
                    <ul>
                    <?php wp_get_archives('type=monthly'); ?>
                    </ul>
                </li>
                
                <li> 
                    <h2>Calendar</h2>
                    <?php get_calendar(); ?> 
                </li>
                
                <?php wp_list_categories('hide_empty=0&show_count=0&depth=1&title_li=<h2>Categories</h2>'); ?>
                
                <li id="tag_cloud"><h2>Tags</h2>
                    <?php wp_tag_cloud('largest=16&format=flat&number=20'); ?>
                </li>
                
                <?php wp_list_bookmarks(); ?>
                
                <?php include (TEMPLATEPATH '/recent-comments.php'); ?>
                <?php if (function_exists('get_recent_comments')) { get_recent_comments(); } ?>
                
                
                <li><h2>Meta</h2>
                    <ul>
                        <?php wp_register(); ?>
                        <li><?php wp_loginout(); ?></li>
                        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
                        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
                        <?php wp_meta(); ?>
                    </ul>
                    </li>
                    
            <?php endif; ?>
        </ul>
        <?php if(get_theme_option('ad_sidebar1_bottom') != '') {
        ?>
        <div class="sidebaradbox">
            <?php echo get_theme_option('ad_sidebar1_bottom'); ?>
        </div>
        <?php
        }
        ?>
?>
Yup; its about 3/5 of the sidebar.php file. Sucky. (but true of most themes, as they go for default widgets if you haven't picked any)

To just shove the video below the widgets, find this code for the video:

php:
        <?php if(get_theme_option('video') != '') {
            ?>
            <div class="sidebarvideo">
                <ul> <li><h2 style="margin-bottom: 10px;">Featured Video</h2>
                <object width="290" height="220"><param name="movie" value="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1"></param>
                    <param name="allowFullScreen" value="true"></param>
                    <param name="allowscriptaccess" value="always"></param>
                    <embed src="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="290" height="220"></embed>
                </object>
                </li>
                </ul>
            </div>
        <?php
        }
        ?>

And the go right to the end of sidebar.php

you'll see to </div> tags on 2 lines as the end of that file; poaste just before those </div>s to make the video bottom item.

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt
Thanks for all the help and I'll get on this after this client leaves.

Just glanced through your post, is this what I will do if on my blog I want to move the Connect With David and Tester Header/Email Widgets above the 2 ad links? That is how I ultimately want it set up if possible.

edit: You know what that works good enough. I really appreciate the help.

Alfalfa fucked around with this message at 14:38 on Feb 19, 2010

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt
Ok still playing around with this stupid thing but I have actually found a theme that is extremely simple to use and has a million options as well as a place to put in your own custom code if needed.

It is called suffusion.

So I am having a problem getting the html images to stick in the widget titles on the sidebars.

This is what I came up with why

quote:

WP's standard widgets and Suffusion's custom widgets strip out html tags from the widget titles, so your method will not work. You can replace the background images of individual widgets' headers, though.

So it was time to start digging in the code and with some help I got to this

quote:

You can use custom CSS. See http://www.aquoid.com/news/2010/02/there-are-some-things-suffusion-cant-do-for-everything-else-there-is-the-custom-styles-option/ on details. Depending on which widget you want to address use this kind of CSS:

code:
#sidebar .widget-suf-featured-posts h3.dbx-handle {
    background-image: url([url]http://your-url[/url]);
}
You will need to modify ".widget-suf-featured-posts" to whichever widget you want to use.

sooo I got one widget title to work but that is it... Here is the one that works and the others that I have tried for other widgets and gotten nothing.

Works:
code:
    #sidebar .widget-suf-featured-posts h3.dbx-handle {
        background-image: url([url]http://genesis-ap.com/uploads/recent.png[/url]);
    }
Does Not Work:
code:
    #sidebar .widget-suf-subscription h3.dbx-handle {
        background-image: url([url]http://genesis-ap.com/uploads/connect.png[/url]);
    }
Neither Does:
code:
    #sidebar .widget-suf-subscription-2 h3.dbx-handle {
        background-image: url([url]http://genesis-ap.com/uploads/connect.png[/url]);
    }
or trying it on a different widget does not work either:
code:
    #sidebar .widget-suf-archive h3.dbx-handle {
        background-image: url([url]http://genesis-ap.com/uploads/archive.png[/url]);
    }
Anyone help?

If you don't want to scroll back a few pages the blog is https://www.dclaiborne.com


edit: Ignore this I figured it out for the most part.

Alfalfa fucked around with this message at 01:50 on Feb 26, 2010

csammis
Aug 26, 2003

Mental Institution
I'm on Wordpress 2.8.6 and I'm playing around with modifying a WP theme. I'm having some trouble with wp_list_pages in header.php to create a navigation menu listing only pages with a certain custom value, so:

code:
$navpages =
  wp_list_pages('echo=0&orderby=name&title_li=&meta_key=book_author&meta_value=butts');
but this is returning every page, regardless of its book_author value. The codex says meta_key/meta_value is supported in this call, should I be using a different method?

Adbot
ADBOT LOVES YOU

Turk
Mar 27, 2006

My theme (a custom hack job) uses the_search_query to display search terms in the title and on the page. When one does a searh with quotes for example "Star Trek" any place search_query is used it displays \"Star Trek\"

This link is a good example.

How do I remove these slashes that are added?

I'm using nothing complicated. just a link to the_search_query:
code:
<a href="/search/<?php the_search_query(); ?>"><?php the_search_query(); ?></a>
The official forums mentioned using php stripslashes. But my knowledge of php is very basic.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply