Skip Navigation

[Gelöst] Fatal error unsupported operand types

This support ticket is created vor 8 Monate, 3 Wochen. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. 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 Antworten, has 2 Stimmen.

Last updated by suzyo vor 8 Monate, 2 Wochen.

Assisted by: Waqar.

Author
Artikel
#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

Waqar
Supporter

Languages: Englisch (English )

Timezone: Asia/Karachi (GMT+05:00)

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.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.