Should I create a child theme for a parent custom theme? [closed]

I would definitely avoid using 2 different wordpress themes and instead code for a more responsive website with CSS mediaqueries. It has worked out very well for me on the WordPress websites I created. If you’re not familiar with media queries, here’s a very basic rundown. HTML — <div class=”box”>hello world</div> CSS — .box { … Read more

How to store wordpress title in a variable

You’re example is totally unclear. What is ngegrab, what is $unity, $yesPage and what do you mean with “WordPress title”? Short: what are you trying to do exactly? To get the title of a post, use get_the_title() as mentioned in the other answer. To get the document title (<title></title>), use wp_get_document_title().

WordPress | enqueue_scripts in a child’s theme returns error

The reason being that: get_template_directory_uri() actually returns the parent’s theme url. To fix it, I simply concatenated the remainder of the path. In this case, the code became: // loading menu toggle function | located in the child’s theme folder function menu_toggle_enqueue_script() { wp_enqueue_script( ‘menu-toggle’, get_template_directory_uri(). ‘-child’ . ‘/assets/js/menu.js’); } add_action(‘wp_enqueue_scripts’, ‘menu_toggle_enqueue_script’); I figured out … Read more

Vague Errors from VIP Scanner Plugin

The first one says that you’re doing an echo or print of one of $GLOBALS, $_SERVER, $_GET, $_REQUEST, or $_POST. This can often lead to Cross-Site-Scripting security issues. It should tell you what line the offending code is on. The second one says that you’re missing the WordPress.com VIP link, which is a link to … Read more

Custom field not showing

Because you’re in The Loop, you shouldn’t need to use get_the_ID(). Does this: <div class=”latest”> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class=”boxes”> <?php echo “<p>”.the_meta().”</p>”; ?> <a href=”https://wordpress.stackexchange.com/questions/109423/<?php echo get_post_meta($post->ID,”promotional_link’, true); ?>”> <?php //var_dump($show); ?> <img src=”<?php echo get_post_meta( $post->ID, ‘promotional_image’, true); ?>” height=”200″ width=”260″> </a> </div><!–boxes–> … Read more

How to override a theme template file with a child theme template file (of the same name)

Directly from Woocommerce: http://docs.woothemes.com/document/template-structure/ The template files of WooCommerce contain the markup and template structure for the front-end (and HTML emails) of your store. If you open these files you’ll notice they all contain many hooks which will allow you to add / move content without having to edit the template files themselves. This method … Read more