Archived

This topic is now archived and is closed to further replies.

  • 0

My Pagelines Homepage File

Question

Posted · Report post

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

Share this post


Link to post
Share on other sites

25 answers to this question

Posted · Report post

Okay, it sounds to me like both of you have a cache plugin running that you've forgotten about. If that's the case, then the solution is to clear the cache to see if the issue goes away since you both removed the code that caused the difficulty.

Simon, in his developer language, is trying to simply say to look over your custom CSS and take out any quotes (single or double) surrounding anything. Personally, I had quotes surrounding a background for my footer and once the quotes were removed, I was able to see the background again.

Share this post


Link to post
Share on other sites

Posted · Report post

Simon, in his developer language, is trying to simply say to look over your custom CSS and take out any quotes (single or double) surrounding anything. Personally, I had quotes surrounding a background for my footer and once the quotes were removed, I was able to see the background again.

Thank you for clarifying this second point. Removing quotes resolved the problem for this newbie.

Share this post


Link to post
Share on other sites

Posted · Report post

Great. So glad to hear it!

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>[/CODE]

^ Can you try removing this line?

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

hi catrina

just seen your reply, will do that now.

Share this post


Link to post
Share on other sites

Posted · Report post

Done that but error still appearing.

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

The code was added under Headerscripts Code and not CSS

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

Run the CSS through the w3c validation site

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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?

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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?

Share this post


Link to post
Share on other sites

Posted · Report post

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 ;)

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

I did remove the script from the custom header scription section but issue still remained. It appears the recent update caused the whole issue. I ended up installing a customn css plugin which seems to have resolved the issue.

For now I will aviod any further updates.

Share this post


Link to post
Share on other sites

Posted · Report post

I did remove the script from the custom header scription section but issue still remained. It appears the recent update caused the whole issue. I ended up installing a customn css plugin which seems to have resolved the issue.

For now I will aviod any further updates.

I think it has to do with this update also... Which plugin, i would like to use it....

Share this post


Link to post
Share on other sites