Forum Replies Created
-
AuthorPosts
-
thanks for replying Nick, sorry for my delay. how could it be a problem with how it’s added to functions.php? how should it be added?
shit, the forum is effing with the code i’m posting, but the top code quote in that last one was the exact code you posted, so disregard the way it is converting the characters.
copied ur code exactly and pasted it like this Nick:
/** Add read more shortcode */
function read_more() {
global $post;
$return_string = 'ID).'">'.get_the_title().'';
return $return_string;
}
add_shortcode( 'read-more', 'read_more_function');
I get the following error:
Parse error: syntax error, unexpected '=' in /home/content/J/S/D/JSDavis82/html/wood/wp-content/themes/magazine/functions.php on line 97I tried this code in functions.php but I’m getting a parse error. Any ideas?
function read_more() {
if (have_posts()) :
while (have_posts()) : the_post();
$return_string = ‘<a href=’.get_permalink($post->ID).’>’.get_the_title().’</a>’;
endwhile;
endif;
return $return_string;
}function register_shortcodes() {
add_shortcode( ‘read-more’, ‘read_more_function’);
}I’m really trying hard to wrap this up. Just don’t have much experience writing in short codes or hooks. Would something like this work – http://www.billerickson.net/code/add-read-more-to-display-posts-shortcode/ ? If so, can you post any modifications you see that I would need to make to that coded to be able to use a [read_more] short code in the widget post meta section?
Any word Nick?
Do you have any help on how to use the hooks system to accomplish this?
Thanks a ton for your help Nick! If I can pull this off the site will be done! Yay!
Nick, thanks for getting back to me over the holiday weekend. Is that easy code to write up? If not, do you know of a widget or plugin that already has this built in (though i need to maintain the post offset functionality).
Those fixes worked perfectly SoZo. Thanks!
Thanks SoZo! disabling those “overflow: hidden;” declarations did show me the arrows. is there a way to move those arrows to float side by side on the right-hand side of the excerpt bar instead of on either side of the slider image?
Also, is there a way to get the excerpt background color opacity AND the solid title color — or are the two mutually exclusive?
November 21, 2012 at 3:40 pm in reply to: Genesis Responsive Slider won’t show photos at full size #1189deleting the image from the media library and re-uploading it seemed to work for some reason. Thanks for the help!
gotcha nick. is there anyway you could help me with that custom output? is it a big ordeal?
Actually no, I didn’t get it to work — well, not without installing a different tag cloud plugin. For some reason, removing the title from the stock tag cloud widget in the Magazine child theme didn’t remove the “Tags” title from the widget. Weird.
November 21, 2012 at 4:47 am in reply to: Genesis Responsive Slider won’t show photos at full size #1083Thanks for the reply idav. I tried what you suggested but it didn’t work. On the dev site link I posted you can see the image in the featured slider has a bunch of white space to the right. The image set to be featured is 780×300 — which are the same dimensions of the slider.
Yet for some reason, it’s getting resized to 600×250.
Any other help?
Thanks for the reply Nick.
Well, is there an easier way to display the “comments” link in the content section with the “read more”, instead of the aforementioned vice versa?
-
AuthorPosts