ThemeForest

SOFA - One Page Folio

  • Bought between 50 and 99 items
  • Has been a member for 1-2 years

I have a few questions I am setting this site up and I want to put a link into the menu to link it to another site, yet again due to the missing support of a menu the question is how I would do that. Secondly in the heading I want one line to be taller then the other, and not have them both change its height when I edit the css. Please let me know if i can change those things.

feeleep
Open “sidebar.php” for edit and scroll down to lines #17 – #29. It currently reads:

<?php
if( count( $navig_items ) > 0 ) {
    echo '<div id="mainnavig">';
    echo '<ul class="navigation">';
    $cnt_li = 0;
    while( $cnt_li < count( $navig_items ) ) {
        echo $navig_items[ $cnt_li ];
        $cnt_li ++;
    }
    echo '</ul>';
    echo '</div>';
}
?>
You could hardcode custom link at the beginning or the end of a menu, like so:

<?php
if( count( $navig_items ) > 0 ) {
    echo '<div id="mainnavig">';
    echo '<ul class="navigation">';
    $cnt_li = 0;
    // custom link here
    echo '<li><a title="Menu Item Label" class="anchorLink" href="http://remote.com">Menu Item Label</a></li>';
    while( $cnt_li < count( $navig_items ) ) {
        echo $navig_items[ $cnt_li ];
        $cnt_li ++;
    }
    // ... or (another) custom link here
    echo '<li><a title="Menu Item Two" class="anchorLink" href="http://remote_two.com">Menu Item Two</a></li>';
    echo '</ul>';
    echo '</div>';
}
?>
As for the other half of your question, I think I don’t get it…
Text in heading is paragraph, maybe you could control font size of certain portions like so:

<p>Duis commodo nibh quis ligula tempus luctus. <span class="smaller-one">Etiam iaculis venenatis tortor ac luctus.</span> Morbi sollicitudin fermentum viverra.</p>
Please note that class “smaller-one” doesn’t exist by default, you’ll have to add it to “style.css” (bottom should be fine!):
span.smaller-one { font-size: 1.8 em; }
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • United States
willsloan Purchased

If anyone is interested, I’ve successfully reintegrated the blog post functionality into this theme. It’s a solid, awesome design but it’s beyond me why anyone would go through the effort to make a WordPress theme if they’re just going to remove the primary function of WordPress. In keeping with the fluid, one-page design, I added SimpleModal and created a page_type called Blog that queries the posts. If a post is longer than the strlength it adds a “Read More” link that will open the full post in a SimpleModal popup when clicked. It looks nice and doesn’t break the original theme design.

This is the code I added to index.php:


} else if( $page_type == 'blog' ) {

                // manage container
                echo '<div class="short-articles" id="page_' . $page->ID . '">';
                // get title

                echo '<h1 class="sectionheading"><span>' . $page->post_title . '</span></h1>';
                // any content?
                if( $page->post_content ) {
                    $service_content = $page->post_content;
                    $service_content = preg_replace( '|(<a.>.*?<img.><.*?a>)|i', '$1 rel="service_' . $page->ID . '" $2', $service_content );
                    // save rel for colorbox
                    array_push( $rel_items, 'a[rel="service_' . $page->ID . '"]' );
                    // throw out the content
                    echo wpautop( $service_content );
                }
                // add to navig
                if( $cnt_li_items == 0 ) $item_string = '<li><a href="#wrap" class="anchorLink" title="' .$page->post_title  . '">' . $page->post_title . '</a></li>';
                else $item_string = '<li><a href="#page_' . $page->ID . '" class="anchorLink" title="' .$page->post_title  . '">' . $page->post_title . '</a></li>';
                array_push( $navig_items, $item_string );

                // check for blog posts
                $args = array( 'numberposts' => 4, 'category' => '1,3', 'orderby' => 'post_date' );
                $blogposts = get_posts( $args );
                if( count( $blogposts ) > 0 ) {
                    $cnt_even = 1;

                    foreach( $blogposts as $blogpost ) {

                        $thetitle = $blogpost->post_title;
                        $getlength = strlen($thetitle);
                        $thelength = 22;
                        if ($getlength > $thelength) $posttitle = '<div class="widget"><h2>' . substr($thetitle, 0, $thelength) . '...</h2>';
                        else $posttitle = '<div class="widget"><h2>' . substr($thetitle, 0, $thelength) . '</h2>';
                        echo $posttitle;

                        $blog_content = $blogpost->post_content;
                        $getpostlength = strlen($blog_content);
                        $postlength = 180;
                        if ($getpostlength > $postlength) $postcontent = substr($blog_content, 0, $postlength) . '...   <a href="javascript:;" rel="' . $blogpost->ID . '" class="readmore postpopup">[Read More]</a><p> </p>';
                        else $postcontent = substr($blog_content, 0, $postlength);

                        $blog_date = mysql2date('F j, Y', $blogpost->post_date);
                        $category = get_the_category($blogpost->ID);
                        $blog_cat = $category[0]->cat_name;
                        $permalink = get_permalink($blogpost->ID);

                        // save rel for colorbox
                        array_push( $rel_items, 'a[rel="blog_' . $blogpost->ID . '"]' );
                        // throw out the content
                        echo '<div class="postmeta">Posted under ' .$category[0]->cat_name.' on ' . $blog_date . '</div>';
                        echo  $postcontent;

                        echo '</div>';
                        // add separator to make boxes tidy
                        if( $cnt_even%2 == 0 ) echo '<div style="width: 99%; height: 1px; line-height: 0; clear: both; display: block; padding: 0; margin: 0;" />';
                        $cnt_even ++;
                        // end subpage
                    }
                }
                echo '</div>';
                // end manage container    
</img.></a.></div>
feeleep

That’s cool mate, thanks a ton!!!

willsloan
willsloan Purchased

It’s not a finished design but here is the test site if anyone wants to see it in action: http://copperstill.willsloan.com

feeleep, thanks for the theme too. It was perfect for what I was looking to do.

feeleep

No, thank YOU for spending time on it!

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
marvc Purchased

I just bought this theme and wonder if someone can let me know if it’s still necessary to add the code above to the index.php page? If so where exactly do I add it? At the end or do I replace what’s already there?

tia

feeleep
The only thing you should do is to open “header.php” and let line #39 read:

jQuery('#sidebar, .project-description li, .article li, #rssfeed, .contact .widget, #sidebar .widget, #mainnavig, #myselfblock img').ifixpng();
...instead of:

jQuery('img[src$=.png], #sidebar, .project-description li, .article li, #rssfeed, .contact .widget, #sidebar .widget, #mainnavig, #myselfblock img').ifixpng();
Just for case you didn’t notice, “img[src$=.png]” is removed from ifixpng().
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
marvc Purchased

Yawnnn… I’ve made the change and created a few posts but they don’t appear. Am I missing something?

feeleep

You’ve made a few Posts? But this theme doesn’t handle Posts, only Pages, please read theme Manuals on how to create different type of Pages.

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
marvc Purchased

I’ve read the manual and I’m aware of the page types. I’m mainly referring to the comment made by willsloan above on his mod to reintegrate the posts feature which I thought you were commenting to in my initial post.

thnks

feeleep

Essentially, I am not about to upgrade theme’s functionality officially. I appreciate this user effort to extend this theme that way but I do not have anything with the code provided above. You can try to use it or tailor to your needs, however for any details please contact WILLSLOAN .

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
marvc Purchased

No worries. I’ll make due or take the loss. Either way good work.

Thanks

feeleep

OK, thanks!!!

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
rlgoo Purchased

cant seem to figure out how to get portfolio subpages to show up. used the custom post type of page_type and portfolio yet not showing…. help?

feeleep

Subpages do not require “page_type” at all :) Only “top level” page do.

  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
  • United States

Hi, Im trying to see a demo of your template, but it’s not working.

feeleep

I did load it right now … maybe there was a server problem.

  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
  • Referred between 1 and 9 users

Can I integrate Contact Form 7 for custom contact form fields and also embed videos throughout?

Thanks!

feeleep

It might work but I will have to add a support for shortcodes if you decide to buy this theme because it was made before WP introduced shortcodes.

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years
uppway Purchased

Hi there just bought the theme, however I can’t find how to change images, and background colors. is there any way to edit the theme design without knowing working with html?

feeleep
If you refer to that lady image in page header, it can be found in “wp-content/themes/sofa_OnePageFolio/uploads/myself.png”. This image is 300×263px so all you need to do is to overwrite it (local machine and/or server), by using the same name, file type and dimensions.
As for how to change bg color….
1. open “style.css”, line #56 and change background color property

body {
    background: url("images/body.jpg") repeat-x scroll 0 0 #000000;
    color: #626262;
    font: 62.5%/1.5 "Lucida sans unicode","Lucida sans",sans-serif;
}
It’s #000000 by default, you can replace with any other color in HEX format, for instance #FFFFFF would result in white bg color. 2. save “style.css” and re-upload to server (FTP) if edited on local machine
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years

Hi, I bought this theme recently because there was a contact form on the demo but don’t see it on my template when loaded. Is there anyway to activate the contact form as shown in the demo? Thanks

feeleep

I have replied to your email half an hour ago, contact page is added by using the following Custom Fields name – value pair: page_type – contact. Hopefully it helps!

  • Bought between 50 and 99 items
  • Has been a member for 3-4 years

jQuery easing doesn’t appear to be working with wp 3.4 :(

feeleep

It does work, the problem is with jQuery…

1. open “header.php” and go to line #39 that reads:

jQuery('img[src$=.png], #sidebar, .project-description li, .article li, #rssfeed, .contact .widget, #sidebar .widget, #mainnavig, #myselfblock img').ifixpng();
...and change with:

jQuery("img[src$='.png'], #sidebar, .project-description li, .article li, #rssfeed, .contact .widget, #sidebar .widget, #mainnavig, #myselfblock img").ifixpng();
2. save “header.php” and re-upload to server (FTP) if edited on local machine
  • Bought between 100 and 499 items
  • Has been a member for 1-2 years

HI, i’m trying to desactivate the lightbox when I put a picture. I want to put a ads on my page but everytime I click on it, a lightbox open with a error message.

Thanks in advance

feeleep
That’s because Colorbox plugin automatically inserts class to IMG tag that is used to trigger lightbox. You have an option to disable Colorbox and maybe find another plugin…
1. open “header.php”, go to line #34 and delete it. This line reads:

<script src="<?php echo( bloginfo( 'template_directory' ) . '/colorbox_2/jquery.colorbox.js' ); ?>" type="text/javascript"></script>
2. save “header.php” and re-upload to server (FTP) if edited on local machine
  • Bought between 10 and 49 items
  • Has been a member for 0-1 years

I can’t find how and where to activate the contact form. There doesn’t seemt o be an option for ‘page type’ anywhere that I can see. Can you advise me please?

feeleep

Did you make custom Fields panel visible? If not, you are unable to set required page_type. See here how: http://awesomescreenshot.com/065lfewc7

Default-user

Thanks feeleep. Nice one :-)

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
gmfus Purchased

I am unable to get any short codes to work with this theme. What am I missing?

I have tried:

expand title=”read full bio” (twitter feed plugin)

I assume Slickr-Flickr is out as well. Any ideas?

feeleep

This is an old theme made before WordPress introduced shortcodes. I could fine tune code a little bit and make it support shortcodes but will need a temp access to WP Admin. That’s how I can use theme Editor and modify templates. Feel free to drop me a private message with login credentials and your request brief description.

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years

This looks to be the closest theme to what I am looking for, sans the blog.

Before I purchase, I just want to verify—

Couldn’t I simply create a LINK on the menu to a blog that is created in another Wordpress theme?

feeleep

Yes, you could if this theme is WP 3.1+ compatible but it’s not. It’s an old theme not supporting WP Menus. Sorry!

Default-user

Thanks! I think you may have another theme that has the blog….Glad I asked.

feeleep

No problem!

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years
mrsrowe Purchased

hello I cannot get the sofa one template to accept items that are in square brackets, if I try to use a plugin like a simple table creator I can set it up with table tags like this: [table,......] but this just outputs in the html.

is the template not usable with plugins?

feeleep

The most probably you are trying to insert shortcode and this theme was made/released before shortcodes were introduced by WordPress. No matter what I could modify code a little bit and make theme “accept” shortcodes if you like. Simply create a temp Admin account for me and send login details to my private email address (click on my avatar and use contact form in sidebar of the profile page).

Default-user
mrsrowe Purchased

thanks for your response. I will pm you the details.

feeleep

OK, no problem!

  • Bought between 1 and 9 items
  • Has been a member for 2-3 years

Hello,

Can you tell me how each “page” is structured? I’d probably want to include some PHP in a couple of them. Does each page have it’s dedicated .php custom file, or is a page done via a widget?

If this is something that is able to be done, I’ll buy this.

Cheers!

feeleep

Not sure I understood the question…
However, hence the fact this is “one page theme” all the content is rendered on “index.php” template. No pages, categories, archives, tags, search, attachments or whatsoever. “index.php”, “header.php”, “footer.php”, “sidebar.php”, “functions.php”, “style.css” plus 2 extra custom templates. That’s all.

Default-user

That’s fine then if it’s on the index page. I was just wondering how customisable each page was, but since they’re made in the index file, that’s fine.

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

How to change the order of the page’s side navigation?

feeleep

This theme uses an “old” navigation system which can’t be controlled via Appearance > Menus. You will have to enter the Order number for each of your pages, have a look at the following screenshot: http://awesomescreenshot.com/00418elecc

Default-user

How to create a side navigation that show post category? By using plugin that support shortcode?

feeleep

There are no Posts with this theme, only pages!

Default-user

Possible for me to use wordpress feedback form in this theme?

feeleep

Yes, contact form is fully functional. Are there any problems relating to contact form?

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years

Hello,

Just purchased your theme to use on a new website that will be going up at the end of the month, and I’ve run into one very glaring problem: Your theme doesn’t seem to support the [gallery] shortcode.

I’ve added the [gallery] shortcode to a few pages, uploaded images, tried a few different settings, even installed a plugin that hooks into the [gallery] shortcode to modify it a bit, and still the gallery does not appear. Instead of the page showing the visual gallery, the page shows [gallery ids=”13,17,21,56”] and the like.

I have tested other themes, and they all display the gallery perfectly. Please assist.

feeleep

It’s an old theme released back in time when shortcodes were still wearing Pampers but no matter what I can make it alive. Feel free to create a temp Admin account for me and send login credentials to my private email address. I’ll modify code a little bit and make your theme copy to start liking shortcodes!

Default-user

Hi feeleep, thanks for the quick reply! I’ve sent you an email via the form on your profile.

feeleep

OK, I’ll take a look and let you know as soon as I’m done.

by
by
by
by
by