redthruviolet
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Version 1.2.7 Drop Down Menu Position DifferenceCool!
Forum: Themes and Templates
In reply to: [GeneratePress] Version 1.2.7 Drop Down Menu Position DifferenceOh, good!
How does GP do that?Forum: Themes and Templates
In reply to: [GeneratePress] Version 1.2.7 Drop Down Menu Position DifferenceTom, thank you for that. Removing that line from the child theme css corrects the drop down positioning problem.
However, WordPress says that that line of code should be the first line of code in a child theme css file.
??
,Susan
Forum: Fixing WordPress
In reply to: Sub pages can not be shownThank you, thank you, thank you!
This fixed 2 of our problems!!Forum: Themes and Templates
In reply to: [GeneratePress] Content Missing in New Page TemplateYes, thank you again!
Here is the code:
<?php
/*
Template Name: Page with No HeaderStolen from Generate Press’s page.php and header.php
Susan Sailow
18Aug2014
*/
?>
<!– From header.php –>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″><title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”><?php wp_head(); ?>
</head>
<body itemtype=”https://schema.org/WebPage” itemscope=”itemscope” <?php body_class(); ?>>
<?php do_action( ‘generate_before_header’ ); ?>
<div id=”page” class=”hfeed site grid-container container grid-parent”>
<div id=”content” class=”site-content”><!– From page.php –>
<div id=”primary” <?php generate_content_class();?>>
<main id=”main” <?php generate_main_class(); ?> itemprop=”mainContentOfPage” role=”main”>
<?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, ‘page’ ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || ‘0’ != get_comments_number() )
comments_template();
?><?php endwhile; // end of the loop. ?>
</main><!– #main –>
</div><!– #primary –>
<?php
do_action(‘generate_sidebars’);
get_footer();
Forum: Themes and Templates
In reply to: [GeneratePress] Content Missing in New Page TemplateHere is the code for the file, page_no_header.php:
<?php
/*
Template Name: Page with No HeaderStolen from Generate Press’s index.php and header.php
Susan Sailow
18Aug2014
*/
?>
<!– From header.php –>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″><title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”><?php wp_head(); ?>
</head>
<body itemtype=”https://schema.org/WebPage” itemscope=”itemscope” <?php body_class(); ?>>
<?php do_action( ‘generate_before_header’ ); ?>
<!– Susan Sailow, 15Aug2014: Add call to breadcrumb functions –>
<div class=”grid-container grid-parent”>
<?php the_breadcrumb(); ?>
</div><div id=”page” class=”hfeed site grid-container container grid-parent”>
<div id=”content” class=”site-content”><!– From index.php –>
<div id=”primary” <?php generate_content_class();?>>
<main id=”main” <?php generate_main_class(); ?> itemtype=”https://schema.org/Blog” itemscope=”itemscope” itemprop=”mainContentOfPage” role=”main”>
<?php do_action(‘generate_before_main_content’); ?>
<?php if ( have_posts() ) : ?><?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( ‘content’, get_post_format() );
?><?php endwhile; ?>
<?php generate_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<?php get_template_part( ‘no-results’, ‘index’ ); ?>
<?php endif; ?>
<?php do_action(‘generate_after_main_content’); ?>
</main><!– #main –>
</div><!– #primary –><?php
do_action(‘generate_sidebars’);
get_footer();
Forum: Themes and Templates
In reply to: [GeneratePress] Adding BreadcrumbsWell, thank you so much!
That worked.Forum: Themes and Templates
In reply to: [GeneratePress] Adding BreadcrumbsWell, I tried some of that.
I copied functions.php to the child theme folder, and added the function there.
Then, when I launched the site, there were error messages saying you cannot redeclare a function.Forum: Themes and Templates
In reply to: [GeneratePress] Adding BreadcrumbsYes, breadcrumbs have been added.
You can see them here:
https://www.sustainablemontereycounty.com/likeweebly/
In the child theme header.php file, after “<?php do_action( ‘generate_after_header’ ); ?>”, I put this code:
<div class=”grid-container grid-parent”>
<?php the_breadcrumb(); ?>
</div>Here is the breadcrumb code, which, unfortunately I had to place in the parent theme’s functions.php file (this seems to be the only outstanding issue):
function the_breadcrumb()
{
global $post;/* Check for Front Page */
if (is_front_page())
{
echo ‘<p id=”breadcrumbs”> You are Here: <a href=”‘;
echo get_option(‘home’);
echo ‘”>‘;
echo ‘Home’;
echo ‘ </p>’;
}else
{
/* Show Breadcrumbs */
echo ‘<ul id=”breadcrumbs”>’;
echo ‘
- You are Here: <a href=”‘;
echo get_option(‘home’);
echo ‘”>’;
echo ‘Home’;
echo ‘ - ‘;
the_category(‘ - ‘);
- ‘;
the_title();
echo ‘ - ‘.get_the_title($ancestor).’
- <strong title=”‘.$title.'”> ‘.$title. ‘
- ‘ .get_the_title(). ‘
- Archive for “; the_time(‘F jS, Y’); echo’
- Archive for “; the_time(‘F, Y’); echo’
- Archive for “; the_time(‘Y’); echo’
- Author Archive”; echo’
- Blog Archives”; echo’
- Search Results”; echo’
<li class=”separator”> > ‘;
if( is_home() && get_option(‘page_for_posts’) )
{
/* echo ‘‘; */
echo ‘‘ . apply_filters(‘the_title’,get_page( get_option(‘page_for_posts’) )->post_title) . ‘‘;
/* echo ‘‘; */
}if (is_category() || is_single())
{
echo ‘<li class=”separator”> >
if (is_single())
{
echo ‘
<li class=”separator”> >‘;
}
}elseif (is_page())
{
if($post->post_parent)
{
$anc = get_post_ancestors( $post->ID );
$anc_count = count($anc);
// echo “
anc_count = ” . $anc_count;$title = get_the_title();
/* Go backwards through the array, to get the correct path display */
for ($k=$anc_count; $k>0; $k=$k-1)
{
$ancestor = $anc[$k-1];
$output = ‘<li class=”separator”> > ‘;
echo $output;}
echo ‘
‘;
}else
{
echo ‘‘;
}}
elseif (is_tag()) {single_tag_title();}
elseif (is_day()) {echo”‘;}
elseif (is_month()) {echo”‘;}
elseif (is_year()) {echo”‘;}
elseif (is_author()) {echo”‘;}
elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) {echo ”‘;}
elseif (is_search()) {echo”‘;}
echo ”;
}
}More information: I believe it is the padding that forces the widget area down.
It seems to work correctly when I have only one widget in the Header Right area.
If I add the Search widget, all of the items in the Header Widget area are pushed down.
You can see the site at:Forum: Themes and Templates
In reply to: [Openstrap] Header Right Widget Area: Left Justify?Thank you – that worked (by changing header.php).
Thank you.
Forum: Fixing WordPress
In reply to: Private Posts: Allow Subscribers/Contributors to ViewThank you so much, Noumaan Yaqoob!
It worked.
Now, I will hope that they continue to upgrade the plugin.
Happy Holidays to you,
Susan
Forum: Fixing WordPress
In reply to: Read More not workingThank you!
You baled me out!!….
Forum: Fixing WordPress
In reply to: Retrieve comments marked as spam?Dear WordPress Forum:
I found the solution –
1. Login to the WordPress database, using PhPMyAdmin
2. Find the comment in the wp_comments table, and edit it as below
3. In the wp_comments record, edit the field, comment_approved, from spam to 1 (1 means approved)
4. Logout of the WordPress database
5. Login to WordPress
6. Under Manage Comments, find your restored comment, and unapprove it, then approve it again
7. Logout of WordPress
8. That’s it!….
- You are Here: <a href=”‘;