Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1101085
    MarleenV
    Participant

    Hi,

    Where can I change:
    <h2 class=”entry-title”></h2>
    for blog entry titles on HOME PAGE ONLY to SPAN codes.

    I’d like to change it, and add a text area.

    Looking forward to your response.

    Kind regards,
    Marleen

    #1101221
    Rue Nel
    Moderator

    Hello Marleen,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL and we would like to know what stack you are using. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thank you in advance.

    #1101586
    MarleenV
    Participant
    This reply has been marked as private.
    #1101637
    Christopher
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Copy _content-post-header.php from framework/views/renew and put it in the same path inside child theme, replace existing code with following :

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/_CONTENT-POST-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Standard <header> output for various posts.
    // =============================================================================
    
    ?>
    
    <header class="entry-header">
      <?php if ( is_single() ) : ?>
      <h1 class="entry-title"><?php the_title(); ?></h1>
      <?php else : ?>
      <span class="entry-title">
        <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>
      </span>
      <?php endif; ?>
      <?php x_renew_entry_meta(); ?>
    </header>

    Hope it helps.

    #1101667
    MarleenV
    Participant

    Thank you very much!

    #1101682
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

    #1102867
    MarleenV
    Participant

    Hi Thai,

    Sorry it’s not exactly the right thing just yet.

    I’m looking for the code for the BLOG ENTRY titles on the HOME page. I need this code:
    <h2 class=”entry-title”></h2>

    And I need to add codes to the homepage to add a text area, so I cant just paste the code to the functions page.

    Where can I fined the all code page, so I can get all the codes?

    Hope this makes sense.

    Thank you!
    Cheers,
    Marleen

    #1103068
    Christopher
    Moderator

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #1107007
    MarleenV
    Participant
    This reply has been marked as private.
    #1107281
    Rupok
    Member

    Hi Marleen,

    Sorry but it’s still a bit confusion. However you can play with the code and update as needed if you need more customization. Without understanding properly we can’t give you any code that you can just copy and paste. I believe it won’t be complex if you just play with the code as you are building a website.

    Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

  • <script> jQuery(function($){ $("#no-reply-1101085 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>