mgsisk / webcomic

Comic publishing power for the web. Turn your WordPress-powered site into a comic publishing platform with Webcomic.
http://wordpress.org/plugins/webcomic
GNU General Public License v2.0
110 stars 29 forks source link

Remove random_webcomic_link without removing button #165

Closed amaliaelliott closed 10 years ago

amaliaelliott commented 11 years ago

Okay, so, in the webcomic navigation currently there is a random link in the center. My client wants to have the page title of the current page there instead and NOT have it be a random link. I can't find how to call the webcomic title, or whether or not I can replace the random_webcomic_link php with a static button in webcomic.php

comic page can be seen at http://hollowtreecomics.com/untitled-webcomic/141/

mgsisk commented 11 years ago

You can use WordPress' own the_title() template tag to render the webcomic title. It looks like you're using Inkblot, so you'll want to edit wp-content/themes/inkblot/webcomic/webcomic.php and replace these lines (16 and 26):

<?php random_webcomic_link( '%link', get_theme_mod( 'random_webcomic_image' ) ? sprintf( '<img src="%s" alt="%s">', get_theme_mod( 'random_webcomic_image' ), __( '&infin;', 'inkblot' ) ) : '' ); ?>

and replace them with something like:

<?php the_title(); ?>

To keep the styling consistent you might have to wrap the title in an anchor, as well:

<a><?php the_title(); ?></a>