badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Difficult to change content-extensions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24214
    rodrigoschneider94
    Participant

    Hi friends!

    I’m trying to custom my “content-extensions” but it’s a little difficult for me. I already have styled a child css, but with PHP I have some doubts. I made a copy of content-extensions in my child folder and also I have a functions child. But, when I try to change something in “content-extensions” like remove entry-meta author, it doesn’t take changes. I think it’s maybe because in functions parent have some “defines” to library, like content-extensions are in structure folder.

    I’m really confused. Someone could help me?

    Thanks til now.

    #24230

    Hi rodrigoschneider94,

    Copying content-extensions in the child folder will not work. You need to create a functions.php and first of all which functions do you want to change. First of all you need to unhook the functions and then only customize the code. This is the example how to change page 404.php

    example:

    // Unhook default Thematic functions
    function unhook_thematic_functions() {
        // Don't forget the position number if the original function has one
    
    remove_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 ); //for page 404.php
    }
    add_action('init','unhook_thematic_functions'); // removes the header content by using hook attitude_header
    
    add_action( 'attitude_404_content', 'attitude_child_display_404_page_content', 10 );
    /**
     * function to show the footer info, copyright information
     */
     
     
    function attitude_child_display_404_page_content() {  // to override 404.php    ?>   
    <div id="content">
    		<header class="entry-header">
    			<h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></h1>
    		</header>
    		<div class="entry-content clearfix" >
    			<p>Thank you this is final</p> 
    		</div><!-- .entry-content -->
    	</div><!-- #content -->
      <?php 
    }
    

    Thank you!

    #24252
    rodrigoschneider94
    Participant

    Hey friend!

    Thank you so much for your reply. I can understand a little more now (also I’m studying PHP yet).

    For example, in content I want to remove the author-info and all this section below the post. How can I do this?

    Thanks again!

    #24272

    hi rodrigoschneider94,
    Go to Appearance -> Theme Options -> Design Options Tab -> Custom CSS paste the following CSS code and Click on save all `changes button:
    .entry-meta-bar {
    display: none;
    }`

    Thank you!

    #24294
    rodrigoschneider94
    Participant

    Hi! Thanks again! It works!

    If I could ask more, for example now: if I want to put this same entry at top of my post, its possible??

    #24305

    Hi rodrigoschneider94,

    This feature is not available in our theme. It needs code customization. You need to hire a developer to fix it.

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.