Skip Navigation

[Resolved] Fatal error unsupported operand types

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.70 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by suzyo 1 year, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2632729
functions fatal error.png

Ack. Tried and can't see the error in the code. Can you help?

Here it is:

// Enqueue Google Fonts
add_action( 'wp_enqueue_scripts', 'pogo_google_fonts' );
function pogo_google_fonts() {
wp_enqueue_style('google-fonts','hidden link|Crimson+Pro:400,500&display=swap|Arimo:400,700&display=swap|Fira+Sans:600&display=swap|Lato:300,400,700&display=swap|Montserrat:400,700&display=swap|Palanquin:400,500,600&display=swap|Roboto:700&display=swap|Signika|Signika+Negative:600,700&display=swap||Spline+ Sans:700&display=swap|Raleway:700&display=swap'|array(), CHILD_THEME_VERSION );
}

hidden link

#2632873

Hi,

Thank you for contacting us and I'd be happy to assist.

Looking into the code you shared, I understand that you'll need to replace the last pipe sign ( | ), with a comma ( , ):


// Enqueue Google Fonts
add_action( 'wp_enqueue_scripts', 'pogo_google_fonts' );
function pogo_google_fonts() {
	wp_enqueue_style('google-fonts','<em><u>hidden link</u></em>|Crimson+Pro:400,500&display=swap|Arimo:400,700&display=swap|Fira+Sans:600&display=swap|Lato:300,400,700&display=swap|Montserrat:400,700&display=swap|Palanquin:400,500,600&display=swap|Roboto:700&display=swap|Signika|Signika+Negative:600,700&display=swap||Spline+ Sans:700&display=swap|Raleway:700&display=swap', array(), CHILD_THEME_VERSION );
}

This should fix the error.

regards,
Waqar

#2633025

You rock, Waqar. Thank you so much.