This is probably super easy, but I have spent 4 hours trying to get rid of the FB icon to the left on the first page. I have inactived any plugin that could be related but no luck. I see noting in the widgets section. If install another theme then the icon goes away.
I tried remove it in CSS but that messed up the rest of the page. Everyting is updated to the latest versions. And the theme is starkers
Warning: Missing argument 1 for WP_Internal_Pointers::enqueue_scripts() in /home/#/public_html/wp-admin/includes/template.php on line 2017
Line 2017 looks like this:
public static function enqueue_scripts( $hook_suffix ) {
/*
* Register feature pointers
*
* Format:
* array(
* hook_suffix => pointer callback
* )
*
* Example:
* array(
* ‘themes.php’ => ‘wp390_widgets’
* )
*/
$registered_pointers = array(
// None currently
);
// Check if screen related pointer is registered
if ( empty( $registered_pointers[ $hook_suffix ] ) )
return;
$pointers = (array) $registered_pointers[ $hook_suffix ];
/*
* Specify required capabilities for feature pointers
*
* Format:
* array(
* pointer callback => Array of required capabilities
* )
*
* Example:
* array(
* ‘wp390_widgets’ => array( ‘edit_theme_options’ )
* )
*/
$caps_required = array(
// None currently
);
// Get dismissed pointers
$dismissed = explode( ‘,’, (string) get_user_meta( get_current_user_id(), ‘dismissed_wp_pointers’, true ) );
$got_pointers = false;
foreach ( array_diff( $pointers, $dismissed ) as $pointer ) {
if ( isset( $caps_required[ $pointer ] ) ) {
foreach ( $caps_required[ $pointer ] as $cap ) {
if ( ! current_user_can( $cap ) )
continue 2;
}
}
// Bind pointer print function
add_action( ‘admin_print_footer_scripts’, array( ‘WP_Internal_Pointers’, ‘pointer_’ . $pointer ) );
$got_pointers = true;
}
if ( ! $got_pointers )
return;
// Add pointers script and style to queue
wp_enqueue_style( ‘wp-pointer’ );
wp_enqueue_script( ‘wp-pointer’ );
}
I have enqueued my scripts like this:
/**
* Enqueue scripts and styles.
*/
function starkers_script_enqueuer() {
wp_enqueue_style( ‘bootstrap’, ‘https://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css’ );
wp_enqueue_style( ‘fopp-style’, get_template_directory_uri() . ‘/css/stylesheet.css’ );
wp_enqueue_script( ‘fopp-jquery’, get_template_directory_uri() . ‘/js/jquery.js’, array(), ”, true );
wp_enqueue_script( ‘jquery-easing’, get_template_directory_uri() . ‘/js/jquery.easing.min.js’, array(), ”, true );
wp_enqueue_script( ‘jquery-scroll’, get_template_directory_uri() . ‘/js/scrolling-nav.js’, array(), ”, true );
wp_enqueue_script( ‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js’, array(‘jquery’), ‘1.9.1’, true);
wp_enqueue_script( ‘bootstrap-js’, ‘https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js’, array(‘jquery’), true);
/* Custom JS */
wp_enqueue_script( ‘fopp-custom’, get_template_directory_uri() . ‘/js/custom.js’, array(), ”, true );
if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) {
wp_enqueue_script( ‘comment-reply’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘starkers_script_enqueuer’ );
Im using the starkers theme with a locally made theme. On MAMP I had no issues. The website looks fine with no issues but I really want to get rid of this warning from the dashboard.
Any advice would be great!
Thanks
]]>I’m noticing that using the starkers wrapper of get_template_part
for passing arrays of parts breaks the types_render_field
functionality.
Notes:
get_tempalte_part
function still works.types_render_field
works up until the point of the first Starkers_Utilities::get_template_part
inside of the wordpress while
statment.For reference, this is the Starkers code:
public static function get_template_parts( $parts = array() ) {
foreach( $parts as $part ) {
get_template_part( $part );
};
}
Best,
Empek
https://www.ads-software.com/plugins/types/
]]>I have created an “episodes.php” template, based on Starkers’ index.php file. On the edit page for “episodes” I have selected the “episodes” page template.
Under settings > reading, I have selected “front page displays” “a static page” and selected the home template for the static page. I also selected “episodes” for the posts page.
I have no idea why this isn’t working. The episodes page is not pulling in articles.
Here is the code for the episodes.php template;
<?php
/*
Template Name: Episodes
*/
?>
<?php Starkers_Utilities::get_template_parts( array( 'parts/shared/html-header') ); ?>
<section class="episodes">
<div class="container clearfix episode-tile-container">
<?php if ( have_posts() ): ?>
<ol>
<?php while ( have_posts() ) : the_post(); ?>
<li>
<article class="episode-tile clearfix">
<div class="episode-image">
<?php the_post_thumbnail(); ?>
</div>
<div class="episode-details">
<span class="episode-number">Episode <?php echo get_post_meta($post->ID, 'episode-number', true); ?></span>
<time class="episode-date" datetime="<?php the_time( 'Y-m-d' ); ?>" pubdate><?php the_date(); ?></time>
<h3><a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_content('[...]'); ?>
</div>
</article>
</li>
<?php endwhile; ?>
</ol>
<?php else: ?>
<h2>No posts to display</h2>
<?php endif; ?>
</div>
</section>
<?php Starkers_Utilities::get_template_parts( array('parts/shared/html-footer') ); ?>
The episode title should be displayed in the <h3> tag. However, the <h3> displays “Episodes”, which is the title of the page. It seems to be trying to display page content, rather than loop through articles.
I’ve tried a fresh install of WordPress, and creating a fresh database. Nothing seems to work. This is driving me a bit bonkers…
Can anyone help?
Thank you in advance.
]]>For some reason when you view my website on a mobile device it is incredibly zoomed in and I can’t really seem to figure out why or the code I need to use to change it.
My website is www.herhautemess.com
Any help is greatly appreciated!
]]>I see that in the sidebar-footer.php file, it says that “the footer widget area is triggered if any of the areas have widgets” but I have no idea how to put widgets there. When I go to the widgets page (where you would add sidebar widgets) there is no option to put any in the footer.
Please help!
]]>I’m using the Starkers theme, and this is the code used to call the header:
<?php Starkers_Utilities::get_template_parts( array( ‘parts/shared/html-header’, ‘parts/shared/header’ ) ); ?>
The html-header.php and header.php files are in the parts/shared folder, thus the above paths. Why they do it this way I don’t know.
I’m working with the Woocommerce plugin, which is looking for get_header(); to fire off their scripts. It is obviously not finding it.
Question: Can I feasibly combine those 2 files into 1, rename it header.php, put it in the root folder and then call it the correct way get_header(); in my template files?
Many thanks in advance if you can point me in the right direction!
-Jane
[closed as duplicate of https://www.ads-software.com/support/topic/can-i-take-the-headerphp-out-of-the-parts-folder-in-my-theme?replies=1 ]
]]>Question: Can I combine the header.php and html-header.php files and place them directly in the root folder so that I can use the get_header(); call?
Woothemes tech support says another option would be to add: do_action( ‘get_header’ );
But won’t that just call the header twice?
Many thanks in advance!
Jane