Jump to content


Photo
- - - - -
Open

My Pagelines Homepage File



This topic has been archived. This means that you cannot reply to this topic.
25 replies to this topic

#1 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 02:03 PM

Hi

I want to make use of the jqFancyTransitions widget but as part of the instruction i need to update my homepage with followings:

<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/jqFancyTransitions.1.7.min.js" type="text/javascript"></script>

Which file do I need to edit using the pagelines editor?

Or

How can i insert the slider or feature on the sidebar.

Thanks

#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 26 October 2012 - 02:11 PM

You can add custom code to pagelines => site settings => Custom Code => Header Scripts.

#3 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 02:49 PM

Done that but with error on page as follows:

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts

Posted 26 October 2012 - 02:54 PM

It looks like there's a conflict between LESS and the jQuery you're trying to implement.

Please Login or Register to see this Hidden Content


^ Can you try removing this line?

#5 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 02:54 PM

Now I am having a problem. I have removed the codes from the custom header and yet the error is still appearing my homepage. How can i remove the error from my homepage

Thanks

#6 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 02:55 PM

hi catrina

just seen your reply, will do that now.

#7 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 02:57 PM

Done that but error still appearing.

#8 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 26 October 2012 - 03:05 PM

You put the code the the wrong box, one is clearly CSS the other is Header Scripts.

#9 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 06:25 PM

The code was added under Headerscripts Code and not CSS

#10 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 26 October 2012 - 06:31 PM

Saw this error:

PageLines Custom LESS/CSS error.

parse error: failed at `.entry_content p:first-child, .post-excerpt > p:first-child { ` line: 1017

Could this also be linked after I had updated my pagelines today before making this change?

Is there a way I can revert back even after removing the code from the header script

#11 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 26 October 2012 - 08:55 PM

Run the CSS through the w3c validation site

#12 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 27 October 2012 - 06:29 AM

Hi
the CSS issue was caused by your upgrade yesterday and that I have fixed but I am still seeing this error above my homepage:

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

How can I remove this. Its getting a bit annoying.

#13 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 27 October 2012 - 06:44 AM

This is even getting more weired. After validating my CSS and w3c validator confirms my CSS is OK, now I am getting more compile error. This time its:

PageLines Custom LESS/CSS error.

parse error: failed at `font-family: \'PT Serif\',Georgia,serif; ` line: 1020

But I do not have my CSS up to line 1020 so where is pagelines getting this line from?

#14 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 27 October 2012 - 09:42 AM

Can I get a help here, my site is completely messed up and I am finding this annoying. It appears upgrading too early was a BAD idea

#15 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 27 October 2012 - 10:42 AM

Take the font family line out the quotes break the less compiler if you need a CSS line with quotes add it to the style.css file I mentioned before

#16 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 27 October 2012 - 03:44 PM

This is unbelievable, this was working before now and now everything I have done seems to have been messed up by your recent update.

Where can i download the previous version? Also you are just mentioning the style.css now.

I have had a look at the style.css and can see the following:

* Don't add customizations to this file!
- Customization CSS in PageLines
- Customize PageLines by adding CSS in the settings, child themes, or plugins
- Don't add it here; as it will either get overwritten by updates, and will prevent you from updating at all!

So should I ignore this and add all the custom css in the style.css page?

#17 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 27 October 2012 - 03:54 PM

All wp options have to run through the kses validation filter. Before the CSS box was whitelisted but this allowed people to add HTML Javascript script tags and all sorts into the CSS box then complain when wp-admin was inaccessible and the only resolution was with phpmyasmin. So the latest upgrade I removed the whitelist but now kses is escaping your font quotes and double quotes and the less compiler chokes on it so I need to find a way of blocking all scrips and HTML but allow you to use 1 font line.
This is my personal hell ;)

#18 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 27 October 2012 - 04:47 PM

Thanks for the update. My only concern is if I apply my CSS in style.css then this would be lost on next update in the event I forget to back that up :(.

Is there any alternative to this issue in the meantime.

Thanks

#19 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 27 October 2012 - 05:23 PM

Not the style in the customise plugin or a child theme they never get updated that's the whole purpose of them

#20 Denis Ciumbargi

Denis Ciumbargi

    Advanced Member

  • Members
  • 66 posts

Posted 27 October 2012 - 06:13 PM

Done that but with error on page as follows:

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Warning: in_array() expects parameter 2 to be array, null given in /home/content/95/9458495/html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551


This also happened to me and now i cannot fix this anymore... All happened when i put in the header script section the script from google custom search engine. Removed that and now the problem remains.