Problem: Fatal error worldpress theme

I cant acess my page anymore. Even the wordpress dashboard. You have two options of varying technical difficulty. Option 1 – Move the theme folder to access /wp-admin/ Log in to your site’s FTP service or control panel’s File Manager Navigate to /home1/wavecont/public_html/wp-content/themes/ Rename sshops to sshops-moved WordPress will automatically stop using the theme’s files … Read more

How to implement theme option to change bootstrap 4 container from .container to .container-fluid

Here is possible solution that works (theme name is “zoran”): //1. Step (Create Customizer section, setting, control) //In functions.php include or directly put code that goes something like this: function zoran_customize_register( $wp_customize ) { $wp_customize->add_section( ‘zoran_sekcija’, array( ‘title’ => __( ‘Zoran’, ‘zoran’ ), ‘priority’ => 35, ) ); $wp_customize->add_setting( ‘zoran_postavka’, array( ‘default’ => ‘container’, ‘type’ … Read more

Dynamic image for Jumbotron on WordPress Custom Theme

You can add support for the built-in Custom Header feature: https://developer.wordpress.org/themes/functionality/custom-headers/ Or use the Customize API to add your own control to the Customizer for selecting the image: https://developer.wordpress.org/themes/customize-api/ The Custom Header feature is basically just a shortcut for using the Customize API to add a control, but you have less control over what the … Read more

Don’t prepend WordPress base url to image paths

You cannot insert remote file in this manner. <?php wp_insert_attachment( $attachment, $filename, $parent_post_id ); ?> $filename (string) (optional) Location of the file on the server. Use absolute path and not the URI of the file. The file MUST be in the uploads https://codex.wordpress.org/Function_Reference/wp_insert_attachment You should first download it to temp dir. If you wish to … Read more