Jump to content
Sign in to follow this  
andydahl

Design Control Problems

Recommended Posts

andydahl

New to Pagelines and have been pouring over the videos, documents, and forum. I love the "idea" of Pagelines! It's super-cool and looks fantastic! However, I'm not so sure I like the "reality" of Pagelines. I've been very disappointed with the ability to control the header part of the website. It seems I'm not able to place content, widget or otherwise, in the space between the logo and Social icons (using the Branding section). I've gleaned that I might be able to place content there using Hooks, but I can't seem to find clear and concise information about implementing these. Are hooks placed via PHP? HTML? I'm very much lost with this. If someone could please give a specific example of adding a widget space above the social icons of the Branding section, I would appreciate it! I've just been messing around with Pagelines on a development site, so I don't have anything to show. I'm just getting ready to give up on Pagelines and settle for my old framework, Catalyst. It's got hundreds of options (and a built in section for hooks), but like it says in the Pagelines videos, this makes it overly complex and it doesn't look nearly as elegant as Pagelines. Thanks, Andy

Share this post


Link to post
Share on other sites
WebWerx
@andydahl: Okay here goes: To implement Hooks, you will need to get the Base them (free) and activate it. It will allow you to enable customization (custom.css & functions.php) easily without touching the core PL theme. Also get the Action Map plugin so you can see where to place your hooks. Once you are familiar with these two items, life will be good. Why would you add a widget space in the Branding section of the site? What are you trying to accomplish? Don't give up Andy!

Share this post


Link to post
Share on other sites
andydahl
Thanks for the encouragement! I've come back in off the ledge! :) Since I'm a php-nobody, I have no clue how to add the hooks to the functions.php file in the base theme (which I'm already using), but I can certainly learn. I've already installed the Action Map, too, but don't know how to use it. I do understand the concept though: Hit "show map" and it shows you the name of the different areas you can hook into. But I really have no clue how to use this info. For example, I see there's a "pagelines_branding_icons_start" area that might be useful to place a widget or html there. How would I accomplish this? What is the code, or where can I find examples to use? That would be most helpful. Thanks for taking the time! Andy

Share this post


Link to post
Share on other sites
Rob
Andy, we hate it when people are on the ledge, so very happy you're back. WebWerx was partially correct. You need the PageLines Customize plugin for hooks and the Action Map helps you find which hook to use. But let's start at the beginning. What would you like to add between the branding and social icons? My site http://www.epicurus.com has a Google Leaderboard, other folks have addresses, phone numbers, etc. There's plenty of this code floating around the forum and I'm sure we could help you find the right hook. I'd also suggest looking at the Docs to read how to use the PageLines Customize plugin. http://www.pagelines.com/wiki.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
andydahl
Thanks for your help Rangelone! Let's take your site, for example. Could you briefly document how you placed the Google ad on your site? A link to a page that explains this, or even a bulleted list (and maybe a bit of code) that I could refer to while trying things out. That's really all I need is to see an example of how it's done, and then I'll figure the rest out by myself. Right now I'm not trying to do anything specifically, rather I'm trying to understand if Pagelines works the way I do. I've gone through the documentation pretty thoroughly, but I just don't seem to find the section that spells this out. Any help would be appreciated. Thanks! Andy

Share this post


Link to post
Share on other sites
Henry Perkins
@Andy I can understand why this seems a little intimidating for you, especially being new to PHP and PageLines. However, that is not all that is required if you wish to develop your own hooks and functions in the PageLines Framework. You need to take a step back and look into the concepts of the Wordpress API itself. A good place to start is [url=http://codex.wordpress.org/Writing_a_Plugin#WordPress_Plugin_Hooks]here[/url], the Wordpress Codex for developing plugins. From there, the Wordpress [url=http://codex.wordpress.org/Plugin_API]Plugin API Codex Page[/url] is a good resource. I can show you a simple example of how I started to add a login form to my header on http://www.liveonshuffle.com/ First, I must "add a new action", which "hooks" a function to an already existing action. In my [b]/wp-content/plugins/pagelines-customize/functions.php[/b], this is handled like so: [code]// add_action('hook_name','function name'); add_action('pagelines_after_branding_wrap','header_login');[/code] Here, I've added a 'header_login' "action" or function to appear after the branding wrap, which is your header image. Immediately following that, I named the action a function, [code]// function name function header_login(){[/code] From there I used HTML to create my login form. If you need further help, you can view our [url=http://www.pagelines.com/wiki/Developer_Docs]Developer Docs[/url] for more support. Keep in mind we can't design your site for you. If your site requires customization, you may wish to consider requesting a quote from one of our authorized Professional designers by visiting [url="http://www.pagelines.com/pros/"]our Pros page[/url].

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×