• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Minimun Theme: How to add a link in a page title (and change it)

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Minimun Theme: How to add a link in a page title (and change it)

This topic is: resolved

Tagged: minimun theme, text, title

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 12 months ago by David Chu.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 22, 2013 at 7:33 pm #51969
    josbarrios
    Member

    I need help with this:

    How can I add a link in a page title?

    I want a link where say "From the blog" here in the demo:
    http://demo.studiopress.com/minimum/threaded-comments/

    Also, I don't want the description site as the displayed text beside the suscription button.
    Like here: http://demo.studiopress.com/minimum/

    How to add a link and change the text?

    I really need help with this and I'll appreciate it. Sorry if my english is bad, am from Venezuela y solo hablo español. 🙂

    http://www.josuebarrios.com/
    July 23, 2013 at 7:30 am #52039
    David Chu
    Participant

    Hola, Josue,
    Saludos y disculpame, mi espanol no es excelente. 🙂

    I want a link where say “From the blog” here in the demo:
    http://demo.studiopress.com/minimum/threaded-comments/

    Para hacer esto, mira Appearance.... Editor, y a la derecha mira "page-title.php". Se puede editar esta para anadir un "link". Es un poco complicado, pero posible.

    Also, I don’t want the description site as the displayed text beside the suscription button.
    Like here: http://demo.studiopress.com/minimum/

    En la pagina principal, no estoy seguro, pero creo que hay un sidebar/widget donde se puede cambiar el texto. (Appearance.... Widgets..... Home Featured #1, etc.).

    Ciao,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    July 23, 2013 at 10:37 am #52087
    josbarrios
    Member

    Hello David. Gracias por responder.

    I still have doubts. Look, here is the code in "page-title.php":

    <?php
    
    if ( is_home() ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_404() ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( 'Ooops! Error', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_post_type_archive( 'portfolio' ) || is_singular( 'portfolio') ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Portfolio', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_singular( 'page' ) ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_author() || is_category() || is_date() || is_search() || is_singular() || is_tag() ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the blog...', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }
    else {
    	echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }

    I see in the few lines of code that the site's description will be the displayed text beside the suscription button, but I don't now how to change that line. I want another text displayed, not the page's description.

    Also, in the code I see the line href="#" wich I can use to add a link in the suscription button, but don't see the line for the anchor link in the text wich I want to change.

    At (Appearance…. Widgets….. Home Featured #1) I can change the first displayed social button at home, but I can't change the text beside the suscription button.

    I know some CSS, but am a beginner and this is new and complicated for me. :/

    I'll apreciate your help. Muchas gracias! Saludos desde Venezuela. Disculpa mi mal inglés.

    July 23, 2013 at 2:37 pm #52127
    David Chu
    Participant

    Hola!
    Back it up first, and then se puede cambiarlo a algo asi. En este ejemplo, hay un titulo, un URL, y el texto del link.

    if ( is_home() ) {
    	echo '<div id="page-title"><div class="wrap"><p> My Titulo Aqui <a href="http://mysitio.com"> Haz Clic </a></p></div></div>';
    }

    Saludos de los EEUU,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    July 23, 2013 at 3:20 pm #52136
    josbarrios
    Member

    Gracias David! Thanks a lot!

    July 24, 2013 at 7:19 am #52216
    David Chu
    Participant

    De nada, Compay! 😉


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble