Results 1 to 7 of 7
-
20th Dec 2011, 04:18 PM #1OPBannedWebsite's:
Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.comGenesis Framework - WP help.
Hey, I'm struck here.
My function.php
<?php
// Start the engine
require_once(TEMPLATEPATH.'/lib/init.php');
// Want to remove actions? Do it here!
add_action('get_header', 'remove_breadcrumbs');
function remove_breadcrumbs() {
if(is_front_page())
remove_action('genesis_before_loop', 'genesis_do_breadcrumbs');
}
// Add new image sizes
genesis_add_image_size('sidebar-alt', 125, 125, TRUE);
add_filter( 'excerpt_more', 'child_read_more_link' );
add_filter( 'get_the_content_more_link', 'child_read_more_link' );
add_filter( 'the_content_more_link', 'child_read_more_link' );
function child_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow"> Download Now </a>';}
?>
But I want to add Download "post title".
I tried <?php the_content("...continue reading the story
called " . get_the_title('', '', false)); ?>
but didn't work.. I also tried few more edit, everything gave me error.
So, I was wondering, can you guys help me out?
Thank you.
PS: style.css
/* Customization for Read More Link... */
.more-link {
background: #CCCCCC;
float: right;
font-size: 11px;
font-weight: bold;
margin: 15px 0 15px 0px;
padding: 2px 7px 2px 7px;
text-decoration: none;
text-transform: none;
}BattleDuty Reviewed by BattleDuty on . Genesis Framework - WP help. Hey, I'm struck here. My function.php But I want to add Download "post title". I tried <?php the_content("...continue reading the story Rating: 5
-
20th Dec 2011, 04:30 PM #2Too busy :|Website's:
L337Fx.com BeastieBay.netPHP Code:<?php the_content("Download ", get_the_title($ID); ?>
EDIT:
Or maybe replace the last line with this (make a backup first):
PHP Code:return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Download Now '.get_the_title .' </a>';}
-
20th Dec 2011, 04:59 PM #3OPBannedWebsite's:
Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.comDidn't work It's showing like
-
20th Dec 2011, 05:04 PM #4Banned
<?php the_content("Download ",get_the_title($ID); ?>
comma was missing?
-
20th Dec 2011, 05:29 PM #5OPBannedWebsite's:
Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.com^^add where?
// Add new image sizes
genesis_add_image_size('sidebar-alt', 125, 125, TRUE);
add_filter( 'excerpt_more', 'child_read_more_link' );
add_filter( 'get_the_content_more_link', 'child_read_more_link' );
add_filter( 'the_content_more_link', 'child_read_more_link' );
function child_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow"> Download Now </a>';}
<?php the_content("Download ",get_the_title($ID); ?>
?>
-
20th Dec 2011, 05:30 PM #6Too busy :|Website's:
L337Fx.com BeastieBay.netoops, yea sorry. Add the comma lol
-
20th Dec 2011, 05:34 PM #7OPBannedWebsite's:
Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.comParse error: syntax error, unexpected '<' in /home/xxxx/public_html/xxxxxx/wp-content/themes/xxxxxx/functions.php on line 20
<?php
// Start the engine
require_once(TEMPLATEPATH.'/lib/init.php');
// Want to remove actions? Do it here!
add_action('get_header', 'remove_breadcrumbs');
function remove_breadcrumbs() {
if(is_front_page())
remove_action('genesis_before_loop', 'genesis_do_breadcrumbs');
}
// Add new image sizes
genesis_add_image_size('sidebar-alt', 125, 125, TRUE);
add_filter( 'excerpt_more', 'child_read_more_link' );
add_filter( 'get_the_content_more_link', 'child_read_more_link' );
add_filter( 'the_content_more_link', 'child_read_more_link' );
function child_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow"> Download Now </a>';}
<?php the_content("Download ",get_the_title($ID); ?>?>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
RAD Framework
By SplitIce in forum Web Development AreaReplies: 40Last Post: 5th Oct 2012, 05:29 PM -
Thesis or Genesis?
By EsotorisK in forum Polling PlazaReplies: 10Last Post: 22nd Apr 2012, 11:02 PM -
[WTB] Windows / ASP / Framework 4
By Nizax in forum Hosting DiscussionReplies: 1Last Post: 17th Aug 2010, 06:57 PM -
Run .net framework app without it
By pankaj in forum Web Development AreaReplies: 12Last Post: 11th Jul 2010, 12:27 PM -
Drupal Best php Framework
By shakiljavid in forum Tutorials and GuidesReplies: 7Last Post: 17th Jun 2009, 02:15 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...