More tag links to seperate domain
-
Hi,
Im trying to customise the <!–more–> tag to link to a seperate domain.
The site currently runs on domain1.com however when someone clicks ‘Read More’ i want it to link through to domain2.com.
I currently use the following code in functions to customise the wording of the more tag;
//custom read more. add_filter( 'the_content_more_link', 'modify_read_more_link' ); function modify_read_more_link() { return '<a class="more-link" href="' . get_permalink() . '"><i>Continue Reading</i></a>'; }
Can the above code be updated to link to a second domain? I do not have much php coding experience. If anyone could advise it would be appreciated!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘More tag links to seperate domain’ is closed to new replies.