Can’t have a front page on a child theme [closed]

I’ve been developing a child theme for busiprof, and had the very poor sense to update busiprof itself. After the update my front page was mostly gone, only the header and footer are displayed. I’ve tried to remove everything but the css file and it does the same. If I activate busiprof I have a front page, if I activate the (supposedly identical) child theme I only get a header and a footer. I’ve tried to link it to a static page but it still won’t display.

Thanks in advance for any help

Issue with Webfont/font-face in child theme

I’ve uploaded a free webfont to my child theme. It’s placed in a folder labelled ‘fonts’. I can’t for the life of me get it to link correctly and work.

This is the code I’m using in the child theme stylesheet

@font-face {   font-family: 'GlacialIndifference';   src: url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Regular.eot'); /* IE9 Compat Modes */   src: url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */        url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Regular.woff2') format('woff2'), /* Super Modern Browsers */        url('http:/MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Regular.woff') format('woff'), /* Pretty Modern Browsers */        url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Regular.ttf')  format('truetype'), /* Safari, Android, iOS */        font-weight: 400;        font-style: normal; }  @font-face {   font-family: 'GlacialIndifference';   src: url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Bold.eot'); /* IE9 Compat Modes */   src: url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */        url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Bold.woff2') format('woff2'), /* Super Modern Browsers */        url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Bold.woff') format('woff'), /* Pretty Modern Browsers */        url('https://MYWEBSITEURL.com/wp-content/themes/atmosphere-child/fonts/GlacialIndifference-Bold.ttf')  format('truetype'), /* Safari, Android, iOS */        font-weight: 700;        font-style: normal; } 

I’ve also tried the following:

@font-face {   font-family: 'GlacialIndifference';   src: url('.../fonts/GlacialIndifference-Regular.eot'); /* IE9 Compat Modes */   src: url('.../fonts/GlacialIndifference-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */        url('.../fonts/GlacialIndifference-Regular.woff2') format('woff2'), /* Super Modern Browsers */        url('.../fonts/GlacialIndifference-Regular.woff') format('woff'), /* Pretty Modern Browsers */        url('.../fonts/GlacialIndifference-Regular.ttf')  format('truetype'), /* Safari, Android, iOS */        font-weight: 400;        font-style: normal; }  @font-face {   font-family: 'GlacialIndifference';   src: url('.../fonts/GlacialIndifference-Bold.eot'); /* IE9 Compat Modes */   src: url('.../fonts/GlacialIndifference-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */        url('.../fonts/GlacialIndifference-Bold.woff2') format('woff2'), /* Super Modern Browsers */        url('.../fonts/GlacialIndifference-Bold.woff') format('woff'), /* Pretty Modern Browsers */        url('.../fonts/GlacialIndifference-Bold.ttf')  format('truetype'), /* Safari, Android, iOS */        font-weight: 700;        font-style: normal; }  

I feel like both of those snippets above should work so I’m at a loss as to what I should try next. I copied the font path directly from cPanel.

Help would be appreciated!

Cheers, Rob

Theme suggestion for text-heavy website similar to Inbox theme [closed]

I am looking for a theme with a similar structure as the one here: https://preview.metricthemes.com/inbox/

I unfortunately can’t use that one because it’s horribly coded and basically any modification causes it to malfunction.

I’ve been looking for something similar, with two sidebars, one to filter, one to display a feed of all posts, and a preview pane that contains data of the post that is selected on the second sidebar.

If anyone has any ideas regarding something similar, would very much appreciate it.

Heavily Customised MyBB Forum (Custom Theme + Addons)

Why are you selling this site?
I started this project last year and have not got round to opening the forum but it has great potential.

How is it monetized?
Not currently.

Does this site come with any social media accounts?
N/A

How much time does this site take to run?
The more time you put into it the more profit you will return, a bit like any website.

What challenges are there with running this site?
Growing the community.

WordPress Child Theme Issue

Hi

I have created a child theme for my blog because I have been offered some advertising and need to hard code it. In truth should have done it before – but never mind.

Anyway the child theme is working except for one thing – the background image on my post. It is a blog about a football team and I have a faded image as a background. However I can't find where I added it to replicate in the child theme. It's not in the style sheet, I've checked (which is why I posted here) – but I can't…

WordPress Child Theme Issue

WordPress Theme Question – Pop Up

Hello,

I am looking to build a website that is very similar to https://www.entertainmentone.com/.

I am looking for a function that is similiar to their home page, where if you look at their home page, you click on one of their content pieces, lets say 1917 there for example and it brings up a full screen preview with the background of the movie, a description, a video that can be played and a link.

I want to do something like this as well, is there a plugin or specific theme…

WordPress Theme Question – Pop Up

Fatal error and use of undefined constant in child theme unless I redefine it

Child theme functions.php:

// Init. require_once( WPBF_CHILD_THEME_DIR . '/inc/init-child.php'); 

In the parent theme functions.php, the constant is defined:

define( 'WPBF_CHILD_THEME_DIR', get_stylesheet_directory() ); 

If I include the same constant definition in the child theme like the above, then the require_once works and /inc/init-child.php file is loaded.

However I get a notice stating that the constant is already defined in the parent theme’s functions.php (correct!).

But if I remove this from the child theme’s functions.php, then I get the following:-

Warning: Use of undefined constant WPBF_CHILD_THEME_DIR - assumed 'WPBF_CHILD_THEME_DIR' (this will throw an Error in a future version of PHP) in /var/www/vhosts/xxx/subdomains/xxx/httpdocs/wp-content/themes/page-builder-framework-child/functions.php on line 42  Warning: require_once(WPBF_CHILD_THEME_DIR/inc/init-child.php): failed to open stream: No such file or directory in /var/www/vhosts/xxx/subdomains/xxx/httpdocs/wp-content/themes/page-builder-framework-child/functions.php on line 42  Fatal error: require_once(): Failed opening required 'WPBF_CHILD_THEME_DIR/inc/init-child.php' (include_path='.:/opt/plesk/php/7.3/share/pear') in /var/www/vhosts/xxx/subdomains/xxx/httpdocs/wp-content/themes/page-builder-framework-child/functions.php on line 42 

So why can I only load the file via the child theme if I redefine the constant even though it is going to show me a notice to state it is already defined…?

The same constant is already in use in the very same child theme functions.php file further up as well like:

// Textdomain. load_child_theme_textdomain( 'page-builder-framework-child', WPBF_CHILD_THEME_DIR . '/languages' ); 

I am assuming there should be a correct way to load the file needed without having to repeat constant definitions?

Child theme functions.php is not executing

WordPress + WooCoomerce + Storefront theme + Storefront child theme.

I have the child theme’s functions.php file from previous site development iteration which used to work. After migrating to new hosting I set up from the scratch same set of WordPress + WooCoomerce + Storefront theme + made Storefront child theme. The only diference with previous iteration is set of plug-ins and CSS rules/styling but custom code in functions.php is not touching them at all. Hoever then I copied functions.php from the previous site iteration it seems to be not executed at all. Trying to fix that I plaied a bit with file permissions on OS level: now it is set to rwxrwxrwx (I know it is not safe but I totaly run out of ideas of what is happening)

What might be going wrong with functions.php?

Here goes the functions.php contents

<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit;   // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below:  if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):     function chld_thm_cfg_locale_css( $  uri ){         if ( empty( $  uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )             $  uri = get_template_directory_uri() . '/rtl.css';         return $  uri;     } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );           if ( !function_exists( 'child_theme_configurator_css' ) ):     function child_theme_configurator_css() {         wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'storefront-gutenberg-blocks','storefront-style','storefront-style','storefront-icons','storefront-jetpack-widgets','storefront-woocommerce-style' ) );     } endif; add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 30 );  // END ENQUEUE PARENT ACTION   add_filter( 'storefront_credit_link', '__return_false' );   add_filter( 'woocommerce_variable_price_html', 'variation_price', 20, 2 );  function variation_price( $  price, $  product ) {       $  min_regular_price = $  product->get_variation_regular_price( 'min', true );     $  min_sale_price = $  product->get_variation_sale_price( 'min', true );     $  max_regular_price = $  product->get_variation_regular_price( 'max', true );     $  max_sale_price = $  product->get_variation_sale_price( 'max', true );       if ( ! ( $  min_regular_price == $  max_regular_price && $  min_sale_price == $  max_sale_price ) ) {         if ( $  min_sale_price < $  min_regular_price ) {             $  price = sprintf( '<span>from </span><del>%1$  s</del><ins>%2$  s</ins>', wc_price( $  min_regular_price ), wc_price( $  min_sale_price ) );         } else {             $  price = sprintf( '<span>from </span>%1$  s', wc_price( $  min_regular_price ) );         }     }       return $  price;   }   function short_woocommerce_product_titles_words( $  title, $  id ) {   if ( ( is_shop() || is_product_tag() || is_product_category() ) && get_post_type( $  id ) === 'product' ) {     $  title_words = explode(" ", $  title);     if ( count($  title_words) > 6 ) { // Kicks in if the product title is longer than 6 words       // Shortens the title to 6 words and adds ellipsis at the end       return implode(" ", array_slice($  title_words, 0, 6)) . '...';     } else {       return $  title; // If the title isn't longer than 6 words, it will be returned in its full length without the ellipsis     }   } else {     return $  title;   } } add_filter( 'the_title', 'short_woocommerce_product_titles_words', 10, 2 );   remove_action( 'storefront_header', 'storefront_product_search', 40); add_action( 'storefront_header', 'storefront_product_search', 25 ); 

Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project

My Path: C:\Users…….\Desktop……\coding\font-awesome-4.7.0\css

my header code:

GTCoding

<div id="slideout-menu">     <ul>         <li>             <a href="<?php echo site_url(''); ?>">Home</a>         </li>         <li>             <a href="<?php echo site_url('/blog'); ?>">Blog</a>         </li>         <li>             <a href="<?php echo site_url('/projects'); ?>">Projects</a>         </li>         <li>             <a href="<?php echo site_url('/about'); ?>">About</a>         </li>         <li>               <input type="text" placeholder="Search Here">         </li>     </ul> </div>  <nav>     <div id="logo-img">         <a href="#">             <img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="GTCoding Logo">          </a>     </div>     <div id="menu-icon">         <i class="fa fa-bars"></i>     </div>         <ul>             <li>                 <a href="<?php echo site_url(''); ?>"                     <?php if(is_front_page()) echo 'class="active"' ?>                 >Home</a>                          </li>             <li>                 <a href="<?php echo site_url('/blog'); ?>"                 <?php if(get_post_type() == 'post') echo 'class="active"' ?>                 >Blog</a>             </li>             <li>                 <a href="<?php echo site_url('/projects'); ?>"                 <?php if(get_post_type() == 'project') echo 'class="active"' ?>>Projects</a>             </li>             <li>                 <a href="<?php echo site_url('/about'); ?>"                 <?php if(is_page('about') == 'post') echo 'class="active"' ?>                 >About</a>             </li>             <li>                 <div id="search-icon">                     <i class="fa fa-search"></i>                             </div>             </li>         </ul>     </div> </nav>   <div id="searchbox">     <input type="text" placeholder="Search Here"> </div>   <?php if(is_front_page()); { ?>    <main>  <?php } ?>