thetoolman123
Forum Replies Created
-
Hi,
I have now added the meta tags manually to my HTML index and also header.php to the main website (the index.html is a landing page for now), but still no luck.
This is the code I am using:
<div data-network="facebook" class="st-custom-button help-us-grow-btn btn-facebook" data-url="https://www.banstead.community" data-title="Banstead Community Forum">Share on Facebook</div>Forum: Developing with WordPress
In reply to: Displaying page or post type?Hi,
Thanks for the reply.
I have tried adding this snippet to the following code in my file that displays the title.
<?php $args = array( 'public' => true, '_builtin' => false ); $output = 'names'; // 'names' or 'objects' (default: 'names') $operator = 'and'; // 'and' or 'or' (default: 'and') $post_types = get_post_types( $args, $output, $operator ); if ( $post_types ) { // If there are any custom public post types. echo '<ul>'; foreach ( $post_types as $post_type ) { echo '<li>' . $post_type . '</li>'; } echo '<ul>'; } ?>It works as in it lists all the types, but not a specific one.
This is the code that controls my titles:
<?php if ( !empty( $title_text ) ) { echo '<h1 class="stunning-header-title">' . esc_html( $title_text ) . '</h1>'; } elseif ( is_home() ) { ?> <h1 class="stunning-header-title"><?php esc_html_e( 'Latest posts', 'crum-ext-stunning-header' ); ?></h1> <?php } elseif ( is_search() ) { ?> <span class="stunning-header-title h1 page-title"> <?php printf( esc_html__( 'Search Results for: %s', 'crum-ext-stunning-header' ), '<h1 class="stunning-header-title d-inline">"' . get_search_query() . '"</h1>' ); ?> </span> <?php } elseif ( is_404() ) { ?> <h1 class="stunning-header-title"><?php esc_html_e( '404 Error Page', 'crum-ext-stunning-header' ); ?></h1> <?php } elseif ( function_exists( 'is_shop' ) && is_shop() ) { if ( is_shop() && apply_filters( 'woocommerce_show_page_title', true ) ) { ?> <h2 class="stunning-header-title h1"><?php woocommerce_page_title(); ?></h2> <?php } elseif ( is_product() ) { ?> <h2 class="stunning-header-title h1"><?php esc_html_e( 'Product Details', 'crum-ext-stunning-header' ); ?></h2> <?php } elseif ( is_cart() || is_checkout() || is_checkout_pay_page() ) { the_title( '<h1 class="stunning-header-title h1">', '</h1>' ); } } elseif ( is_page() || is_singular( 'fw-portfolio' ) || is_singular( 'post' ) ) { the_title( '<h1 class="stunning-header-title">', '</h1>' ); } elseif ( function_exists( 'tribe_is_event_query' ) && tribe_is_event_query() ) { ?> <h1 class="stunning-header-title"><?php esc_html_e( 'Events', 'crum-ext-stunning-header' ); ?></h1> <?php } elseif ( is_archive() ) { ?> <h1 class="stunning-header-title"><?php the_archive_title(); ?></h1> <?php } elseif ( is_tax() ) { //FORUM TITLES echo '<h1 class="stunning-header-title">' . esc_html( get_queried_object()->name ) . '</h1>'; } else { the_title( '<h1 class="forum-title stunning-header-title">', '</h1>' ); }Forum: Fixing WordPress
In reply to: item in main menu depending on if a user is logged in?It’s from a theme, I will ask them
Forum: Fixing WordPress
In reply to: item in main menu depending on if a user is logged in?Thanks, that works 😀
I now have an issue with adding my login link.
My website uses a modal to display the login/register
Is there a way I can implement a modal /data attribute in my menu.
So basically I need to add this:
<a href="#" data-toggle="modal" data-target="#registration-login-form-popup ">Register</a>into a menu item.
I have tied adding just a # to the link and then adding the actual link to the link title:
<a href="#" data-toggle="modal" data-target="#registration-login-form-popup ">Register</a>But this adds the links… one with a blank and also my normal one which works.
If anyone has any ideas, that would be great!
Thanks
Hi,
The URL is:
https://www.banstead.community/I have tried to rescrape it, but getting the following:
Warnings That Should Be Fixed
Inferred Property
The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
Missing Properties
The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id
When and how we last scraped the URL
Time Scraped
5 hours ago
Scrape Again
Response Code 206Forum: Fixing WordPress
In reply to: stop specific elements creating paragraph and br tagsI am referring to the old editor.
Basically I’m using Contact Form 7 and it is wrapping labels and fields in paragraph tags which I do not want.
Forum: Fixing WordPress
In reply to: files in /inc directory in child theme not updatingHi,
Thanks for the reply.
I am using the Pixgraphy theme. I am basically trying to rebuild the logo element, but have hard coded this into my header.php file in the child theme which has resolved this.
Forum: Fixing WordPress
In reply to: Adding a login/logout members menuThanks for the reply.
I have now managed to add the login/logout link using this:
https://developer.wordpress.org/reference/functions/wp_loginout/I have a few questions:
1) Where can I edit the actual “Login” / “Logout” text on the link?
2) The login takes me to the standard wp-login page. Is there a way I can have a custom login page?Thanks!
Forum: Plugins
In reply to: [Contact Form 7] adding recaptcha to contact form 7 not workingI found the solution – I was using an old V2 recaptcha not the V3
Forum: Developing with WordPress
In reply to: Adding a menu to template using shortcodeYes. I have created the menu, but I cannot work out how to add it to a PHP template.
Forum: Developing with WordPress
In reply to: Adding a menu to template using shortcodeHi,
Thanks for the reply.
I basically want to display a menu I have created in my admin in a template I have created. I currently have a top menu which I have added manually, but would like to add one that is controlled via the admin to one of my templates.
Forum: Fixing WordPress
In reply to: paragraph tags not showing in pageI’ve installed classic editor and it seems to have fixed the issue 🙂
Thanks for your help
Forum: Fixing WordPress
In reply to: paragraph tags not showing in pageI see, yes I think I have stripped the p tags in functions.php but other pages seem to be ok. So if I installed classic editor, it should work?
Forum: Fixing WordPress
In reply to: paragraph tags not showing in pageI have a few plugins installed.
I don’t have TinyMCE installed.
This is my page when I edit:
https://ibb.co/QmMN1PK- This reply was modified 6 years, 5 months ago by thetoolman123.
Forum: Developing with WordPress
In reply to: ShareThis WhatsApp link within a linkI see, yes I will try to ask somewhere else. I have received text messages that have a link with a title rather than a URL so i’m guessing it can be possible.