WordPress.org

Ready to get started?Download WordPress

Forums

Easy Portfolio
[resolved] Change Default page template (6 posts)

  1. linburnlane
    Member
    Posted 8 months ago #

    At the moment, the each portfolio page is using the default template which has a sidebar. I want it to use the Full Width page template. Can you help? Thanks!

    https://wordpress.org/plugins/easy-portfolio/

  2. Tushar Patel
    Member
    Plugin Author

    Posted 8 months ago #

    Sorry for late replay.
    open file following path easy-portfolio/themes/portfolio_details.php
    and Comment Line Number 54.
    Now working Full Width page template.

  3. linburnlane
    Member
    Posted 8 months ago #

    Thanks; yes, commenting out '<?php get_sidebar(); ?>' does remove the sidebar however it's still using the same sidebar template which means that there is now an empty space where the sidebar used to be.
    I would like it to use the Full Width of the page if possible?

  4. Tushar Patel
    Member
    Plugin Author

    Posted 8 months ago #

    open file following path easy-portfolio/themes/portfolio_details.php
    added below code in portfolio_details.php .

    <style>
    .site-content {
     width: 100%;
    }
    </style>

    remove below style code.

    .ep_entry-content{
     width: 65.104166667%;
    }

    now it working pls check this link. http://awesomescreenshot.com/0642zqgh90

    more help contact me on tushar44u@gmail.com.

  5. linburnlane
    Member
    Posted 8 months ago #

    It still left the blank space where the sidebar used to be, however, I added back in the .ep-entry-content style and increased it to 95% and all is good now. Thanks for all your help!

    <style>
    .ep_entry-content{
     width: 90%;
    }
    </style>
  6. wp-website
    Member
    Posted 4 months ago #

    I'm not a big fan of editing plugins that are bound to get overwritten anytime there is a plugin update. At any rate, here is my solution to addressing this issue. In your theme's functions.php file, add the following:

    remove_action('template_redirect', 'ep_template_post_detailspage');

    This will disable the use of the plugin's internal theme, and freeing you to create your own within your theme. Simply create a single-portfolio.php file based off of your desired page/theme template, and work from the easy-portfolio/themes/portfolio_details.php theme file for pulling the elements of the portfolio you wish to use.

Reply

You must log in to post.

About this Plugin

About this Topic