Lou Sparx
Forum Replies Created
-
Pages in the sidebar widget (vertical) right?
Try:
#sidebar .page_item a{
font-weight:bold;
line-height:1.5;
border-bottom: 2px dotted red
}Once we’ve established if this worked we will move on to styling it for you 🙂
Forum: Themes and Templates
In reply to: How to remove white space on left and right of header?Without seeing the problem I’m pretty sure if you remove the 20px padding from wrapper everything should line up flush.
But, this may take away the padding for everything so either remove the 20px padding or add:
padding: 0px -20px;
To the header with the problem.
Let me know if you need more detailed help 😉
No worries.. are you using this> http://themehybrid.com/demo/hybrid/ or a child them of Hybrid?
Forum: Themes and Templates
In reply to: theme problemlink?
Forum: Themes and Templates
In reply to: Satorii, bigger picturesHave you tried to manually change the size with CSS? what options do you have after inserting an image into a post: thumbnail> medium> full??
Please describe the problem in more detail
Forum: Themes and Templates
In reply to: Problem with Premium News ThemeThat’s not good lol. OK how much do you know about WP? Are you having a problem with WP or just that theme?
Forum: Themes and Templates
In reply to: How to make sidebar wider?what’s the url I’ll have a look 🙂
I can have a look if you wish but I don’t have hybrid. You can either paste your header.php code or point me to a demo maybe?
Forum: Fixing WordPress
In reply to: Moving Function to Header..Thank you so much, Mark. Really appreciate you taking the time to write that code for me.
Lou
Forum: Fixing WordPress
In reply to: Moving Function to Header..So I’m assuming my variable is get_the_excerpt().
Becomes..
<meta name=”description” content=”<?php $something = str_replace( array( ‘”‘, “‘” ), ”, get_the_excerpt() ); $words = explode(‘ ‘, get_the_excerpt());
echo implode(‘ ‘, array_slice($words, 0, 24)).’ …’; ?>” />What would replace the $something?
Forum: Fixing WordPress
In reply to: Moving Function to Header..Hi Mark,
OK I’ll start a new query which will lead to the same result.. I have this code that calls the excerpt into a meta tag:
<meta name=”description” content=”<?php $words = explode(‘ ‘, get_the_excerpt());
echo implode(‘ ‘, array_slice($words, 0, 24)).’ …’; ?>” />The only problem is the excerpt that is called has quotes inside it that I don’t want (they break the meta tag).
How can I str_replace ” (quotes) within the excerpt, with say a Z?
Maybe:
<meta name=”description” content=”<?php str_replace ‘”‘, ‘Z’; $words = explode(‘ ‘, get_the_excerpt());
echo implode(‘ ‘, array_slice($words, 0, 24)).’ …’; ?>” />The excerpt that is being called contains quotes (“) that I don’t want. Please help me str_replace them 🙂
Lou
Forum: Fixing WordPress
In reply to: Moving Function to Header..With all due respect, esmi, I’ve had my question answered by several other questions followed by “needs to be re-written” which I was originally asking for help with in the first place lol.
Thanks anyway
Forum: Fixing WordPress
In reply to: Moving Function to Header..Exactly my original post.. If you check my second code example I’m trying to convert that to work within my header.php.
If anyone can help I’d much appreciate it.
Forum: Fixing WordPress
In reply to: Moving Function to Header..If I place:
`function hello() {
global $post;
if (!is_single()) {
return;
}//print_r($post);
$pony = strip_tags($post->post_content);
$pony = str_replace(array(‘”‘,”‘”, “\n”, “\r”, “\t”), ”’, $pony);echo “$pony”;
}add_action(‘wp_head’, ‘hello’);`
In my header.php it doesn’t work.
Forum: Fixing WordPress
In reply to: Moving Function to Header..I want the 1st code listed to work within my header.php instead of the functions.php but not sure how to convert it from a function to something that would work placed in my header.php.