WordPress.org

Ready to get started?Download WordPress

Forums

Travelify
[resolved] Can edit .php (9 posts)

  1. LtMays
    Member
    Posted 4 months ago #

    I dont understand the .php files for this theme
    Im trying to add my own div for the side bar but the .php files are
    setup weird to me. Im trying to put the title box for the right side bar above the box with all the content.

  2. Silkalns
    Member
    Theme Author

    Posted 4 months ago #

    You can do that by adding content inside sidebar-right.php (or other if you have different setup) right after

    <?php
    	/**
    	 * travelify_before_right_sidebar
    	 */
    	do_action( 'travelify_before_right_sidebar' );
    ?>

    There you can add code like this and it will be displayed on top of sidebar.

    <div class="some-info">Some info goes here</div>

  3. LtMays
    Member
    Posted 4 months ago #

    Thanks for the reply!

    what i want to do is make the titles of the side bar its own div.
    I want it to look like this themes

    http://1shotgraphix.com/sports/

  4. Silkalns
    Member
    Theme Author

    Posted 4 months ago #

    For this you don't need access to an actual php file but simply modify CSS for this theme widgets.

    if you still want to edit separate widget boxes you can find related php code in second functions.php file located in theme folder - library - functions. This might not be required to create styling you mentioned above.

  5. LtMays
    Member
    Posted 4 months ago #

    Sorry for all the questions im new to wordpress,

    But yea i can easily add a background color to the title, but the color doesnt stretch the full width of the sidebar because it has a padding. But i need the padding because i dont want the text on the very edge of the box

  6. Silkalns
    Member
    Theme Author

    Posted 4 months ago #

    You have to options:
    1. To increase size of the tile and add negative margin, so it covers that space.
    or
    2. Add padding only for separate elements such as p, ul, li and others elements for widget area which is what developer for that theme have done.

    Inspace that them source to understand how it is done. The html is very similar for both themes, just styling is different.

  7. LtMays
    Member
    Posted 4 months ago #

    thankyou!!!
    i didnt know about a negative margin that fixed my problem :)

  8. LtMays
    Member
    Posted 4 months ago #

    last thing.
    How would i go about making images inside of posts show on the homepage?

  9. Silkalns
    Member
    Theme Author

    Posted 4 months ago #

    If you are talking about regular images not featured images then they won't be displayed there by default because theme uses the_excerpt instead of the_content function.

    However, there are 3 different blog template and one will display full blog content on front page. You just need to setup blog to use this template. You can find more information about that on theme documentation: http://colorlib.com/wp/support/travelify/

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.