Jump to content
Sign in to follow this  
Lisa Haran

Can this be done?

Recommended Posts

Lisa Haran

Hi, Having serious issues with pagelines at the moment, seems like here are lots of bugs in my program. anytime I edit the Configure Layout Dimensions keep changing, all very odd. I am trying to re-design this homepage http://www.kinlaydublin.ie/ to http://www.kinlaydublin.ie/home2/ so that the client can edit it. I cannot seem to find a way to get the welcome text to align to the right of the feature slide show, been trying for 5 hours to get this to work. Any thoughts please

Share this post


Link to post
Share on other sites
Simon
	#fbox_2851 {
	margin-top: -340px;
	}

Probably a better way, but that took 30 secs in firebug ;)

Share this post


Link to post
Share on other sites
Lisa Haran

Thanks Pross, I use firebug all the time, but for some reason didn't think of using -margin. Still not working right, the width of the text is a lot wider is safari, but it looks perfect in firefox. #fbox_2851 { margin-top: -340px; margin-left: 600px; font: normal 24px/normal EdGothic; color: #e7f6fd; width: 360px; } Also do you see the 'book now' form I want to mimic the form on the side bar, http://www.kinlaydublin.ie/hostel/ where the default date is two weeks ahead of real time date. Copied the EXACT into the HTML page area of into http://www.kinlaydublin.ie/home2/ are for reason it will not work, date default to January.

Share this post


Link to post
Share on other sites
Lisa Haran

Hi I sorted out the text issue, if you could assist me with form issue that would be great. thank you

Share this post


Link to post
Share on other sites
Simon

Your js is broken, look at the source of the page, some of the js is being converted to html chars when you copied it.

	 [/code]

Share this post


Link to post
Share on other sites
Lisa Haran

but when I look at the HTML source within pagelines it isn't broken. I am copying code directly from a text editor called BBEDIT. So at a total loss as to how to get the script to work on this page, when it works when copied into the widget.

Share this post


Link to post
Share on other sites
Lisa Haran

I cannot see the JS source broken when I look at source code

Share this post


Link to post
Share on other sites
Simon

TBO adding js into post will ALWAYS lead to pain, wordpress strips it and makes a ripe mess of it wrap it into a function and add it to wp_head with add_action ;)

Share this post


Link to post
Share on other sites
Lisa Haran

this the JS that is currently pasted into the widget and that works on side bar ? 

Share this post


Link to post
Share on other sites
Simon

but your putting it into a post? or a widget?

Share this post


Link to post
Share on other sites
Lisa Haran

just saw your comment above wrap it into a function and add it to wp_head with add_action could you guide me through this, as I'm not sure how to do it. I agree adding JS can be a complete pain found some plugins that kinda work but your suggestion is most likely the best method if I could figure it out. Then I am finished :) Love pagelines

Share this post


Link to post
Share on other sites
Simon

something like:

	function date_picker_js() {
	?>
	

add it to platformbase/functions.php

Share this post


Link to post
Share on other sites
Lisa Haran

would this work, added ?> <?php print_pagelines_option('asynch_analytics'); // Recommended Spot For Asynchronous Google Analytics ?> <?php do_action('pagelines_before_site'); //hook ?>

<?php do_action('pagelines_before_page'); //hook ?>
<?php do_action('pagelines_before_header');?>
<?php do_action('pagelines_header', 'header'); //hook ?>
<?php do_action('pagelines_before_main'); //hook ?>
<?php if(pagelines_is_buddypress_page()):?>
<?php endif;?>

Share this post


Link to post
Share on other sites
Simon

DONT EDIT the core files! How can you update then?

Share this post


Link to post
Share on other sites
Lisa Haran

Pross, I always back up before I edit so it's fine. Just trying to figure out a way to get the script to work on the new homepage so that the date is correct.

Share this post


Link to post
Share on other sites
Lisa Haran

header.php back to original state

Share this post


Link to post
Share on other sites
Lisa Haran

added it to functions.php still not working, really appreciate your time <?php /* THEME INITIALIZATION This file loads the core framework for Platform which handles everything. This theme copyright © 2008-2010 PageLines */ require_once(TEMPLATEPATH . "/core/core.init.php"); function date_picker_js() { ?> <?php } add_action( 'wp_head', 'date_picker_js' );

Share this post


Link to post
Share on other sites
Simon

If you add the code i posted, to your platformbase functions.php, if platformbase is the active theme, that js will be loaded into the header of every page.

Share this post


Link to post
Share on other sites
Lisa Haran

sorry added it to wrong functions. went to platformbase and added it, the page then went blank

Share this post


Link to post
Share on other sites
Lisa Haran

I'm obviously not pasting the content into the right location on this page because platfrom base is my active theme do you mind if I paste the full functions.php here

Share this post


Link to post
Share on other sites
Lisa Haran

<?php // Setup -- Probably want to keep this stuff... // Set up action for section registration... add_action('pagelines_register_sections', 'base_sections'); /* Hello! First, lets load the PageLines core so we have access to the functions */ require_once(TEMPLATEPATH . "/core/core.init.php"); // ==================================================== // = BASE FUNCTIONS - Where you should add your code = // ==================================================== // Hooks are a way to easily add custom functions and content to the Platform theme. There are hooks placed strategically throughout the theme // so that you insert code and content with ease. // Below is an example of how you would add a social media icon to the icons in header (branding section) // We have placed a hook at the end of the icon set specifically add new icons without modifying code or having to worry about your edits // getting thrown out during the upgrade process. The way to use hooks goes a little like this: // add_action('hook_name','function name'); add_action('pagelines_branding_icons_end', 'add_icons_to_branding'); // function name function add_icons_to_branding(){ // what the function does??“in this case adds a stumbleupon icon to the header of your theme. The class referenced in the link can be seen in the style.css // and is the image from the CSS is placed in the images folder ?> <?php } // end function // A full list of hooks can be seen by toggling the "advanced" button on each section in the "template setup" option tab. Each hook listed is associated with the section that it is listed under. That's all! Start adding hooks below. /* Register a Drag&Drop HTML Section for the admin. A pullquote section was created here for demonstration purposes Sections should be named: section.[your section name].php and placed in the sections folder. */ function base_sections(){ /* Your custom sections get registered in here... PageLines Register Section Arguments: 1. Section Class Name, 2. Directory name (or filename if in root of 'sections' folder), 3. Init Filename (if different from directory name), 4. Section setup and variable array */ pagelines_register_section('BasePullQuote', 'pullquote', null, array('child' => true) ); pagelines_register_section('BaseSidebar','sb_base', null, array('child' => true) ); } function date_picker_js() { ?> <?php } add_action( 'wp_head', 'date_picker_js' );

Share this post


Link to post
Share on other sites
Simon

This is tested, it does work ;) you must have typo'd it or put it in the wrong place.

Share this post


Link to post
Share on other sites
Lisa Haran

pross would you mind looking at my last post, it is my entire functions.php. I pasted your code directly at the bottom of the php file

Share this post


Link to post
Share on other sites
Simon

And the error from your error_log is?

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  

×