• Hello
    I am using Travelify for my website, and I really like it, but I would like to customize the theme a little bit. My website is made for the blind, so I need a few customization tricks for single posts in order to improve their experience with the lovely Travelify theme. For example, I would like to change the order of elements they see on the post. Right now, they see the following elements on the post. I put an example for each element:
    Post Header: Our latest software has been newly released.
    Post Author: Javad Hoseini
    Post Date: January 15 2015
    Categories: Computers, Software
    Post Content: Hello, our latest software has been released. You can click here to download it.
    Attachments from WP-Filebase: The latest release of software, 25MB.
    Post Tags: Software, 2015

    Now, I would like to change the order of above items. For instance, I want to add “Download” header before the attachments. I would like to add “Tags” word before the tags. I would like to move “categories” element to the bottom of post instead of top, etc. I went to “Single.php”, and I found that all such things are associated with an action called travelify_main_container. I searched the files and found that this action has been associated with a function named “Travelify_Contents” or something like that. I found the function too, but I could not make heads or tails of the function. I could not find out how to change the order of elements in a post. Please help. By The way, I use the theme with right side bar (only one side bar).

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Silkalns

    (@silkalns)

    Website structure related functions can be found on file called content-extensions.php which you can find in travelify folder >> library >> structure.

    Thread Starter javad2000

    (@javad2000)

    Hi
    Thank you. Before receiving your answer, I searched a lot and finally found the way to change the positions of those elements. I Changed the positions of many elements in my website, and now I am far more satisfied with the layout. There was only one thing I could not quite deal with. In a page with a single post, suppose I have a few comments. The layout of each comment is as follows:
    [Comment Number]
    [Comment Author]
    [whether or not the comment is from post author]
    [comment date]
    [comment time]
    [comment text]

    Example:
    1- Javad Hoseini, Author, January 15 2015, 05:30PM
    Hello, This is my test comment

    I want to do the following actions:
    1- I want to remove “[Author] (The place that writes “Author”). I also want to remove the comment time and to move the comment date from top of the comment to the buttom of comment. These small tweaks are significantly influential on my website’s accessibility for blind users. I took a few hours dealing with “WP-Includes\Comments-Template.php”, but I did not succeed to do the thing I wanted. I want something like this:
    1- Javad Hoseini
    Hello, This is my test comment
    January 15 2015,

    Thank you

    You can try adding in functions.php from theme folder right at bottom before closing the php tag ?> the following code :

    function wp_move_comment_field_to_bottom( $fields ) {
    $comment_field = $fields['comment'];
    unset( $fields['comment'] );
    $fields['comment'] = $comment_field;
    
    return $fields;
    }
    add_filter( 'comment_form_fields', '_move_comment_field_to_bottom' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Customize Travelify Single Post Layout’ is closed to new replies.