craigtommola
Forum Replies Created
-
Of course. It’s always something absurdly simple that I’ve overlooked. Thank you kindly. Much appreciated.
Forum: Themes and Templates
In reply to: [Virtue] Create new custom homepage templateRock and roll. Thank you.
Forum: Themes and Templates
In reply to: [Virtue] Create new custom homepage templateAny thoughts on this? Any questions?
My page template is in a child theme, and should override the parent theme file … but it’s not. Please review and advise!Forum: Themes and Templates
In reply to: [Virtue] Remove sidebar on custom page templateThanks so much
Forum: Themes and Templates
In reply to: [Virtue] Remove sidebar on custom page templateGood to go
Forum: Themes and Templates
In reply to: [Virtue] Remove sidebar on custom page templateMy bad – it’s a private page – just a moment.
Forum: Themes and Templates
In reply to: [Virtue] Remove sidebar on custom page templateJust a regular page. It’s page-schedule.php
Forum: Plugins
In reply to: [Disable Right Click For WP] Fixed itThank you kindly
Forum: Plugins
In reply to: [Disable Right Click For WP] Fixed itPuzzling. Because without it. I receive a console error, pointing specifically at that line:
Uncaught SyntaxError: Unexpected token ';'
var show_msg = ;
and the plugin doesn’t work, but when I add the single quotes, the console error is gone, and the plugin does work.
Chrome Version 79.0.3945.88 (Official Build) (64-bit)
Mojave 10.14.6Forum: Themes and Templates
In reply to: [Twenty Nineteen] Search?I’m in the midst of trying to do this the right way – adding it in my child theme. However, there’s a bugginess when there is also a Menu active on the page. The “focus” state of the search field drops and you can’t type into the field. Thoughts? Anyone else find this?
Forum: Themes and Templates
In reply to: [Virtue] Adding Child Theme, Custom Post Type, Custom FieldsSo … those above comments were also me, just a diff login. Anyway… I have a custom post type with custom fields. I’m outputting something to this affect:
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<div class=”resource-contact”>(ACF output of contact info)</div>
<div class=”resource-social”>(ACF output of social media links)</div>I like the automatic “related posts” it’s picking up from my custom post type. However, it appears to be hooked to <?php the_content(); ?> and is therefore appearing between the post content and my ACF output.
How might I “move” the related posts to, say the <footer class=”single-footer”> for example?
Forum: Themes and Templates
In reply to: [Virtue] Adding Child Theme, Custom Post Type, Custom FieldsSince you’ve moved all the post content into hooks, it makes it especially difficult to make custom post types and have unique output and formatting. Perhaps moreso in a child theme.
For example, I have the custom post type Resources. On the Resources “single” page I want to remove the Author and Comment count. And include the featured image.
Generally in child theming, I’d duplicate the single, perhaps a template-part, and customize. But all the pieces are separated into the /lib/template_hooks/post-hooks.php
How do you recommend I customize a custom post type in a child theme of Virtue?
Forum: Themes and Templates
In reply to: [Virtue] Adding Child Theme, Custom Post Type, Custom FieldsGot it to work like this:
<?php if( get_field('facebook') ): ?> <a href="<?php the_field('facebook'); ?>"><li><?php the_field('facebook'); ?></li></a> <?php endif; ?>
Forum: Themes and Templates
In reply to: [Virtue] Adding Child Theme, Custom Post Type, Custom FieldsI was able to add content after I created a new div.
I have spoken to ACF. The most recent question being:Ok – this is puzzling … how come this works:
<li><?php $facebook= the_field('facebook'); if ($facebook != '') {echo $facebook; } ?></li>
But not this:
<?php $facebook= the_field('facebook'); if ($facebook != '') { echo "<li><a href=\"".$facebook."\" class=\"fab\">".$facebook."</a><li>"; } ?>
Forum: Themes and Templates
In reply to: [Virtue] Adding Child Theme, Custom Post Type, Custom FieldsPPS … throughout the theme, you’ve misspelled “summary”
$summery = 'full';