Forum Replies Created
-
AuthorPosts
-
claubsParticipant
Yes, I the only file edited is funtcions.php with the code posted in a previous post in this thread. The style.css file only contains the following:
/* Theme Name: Kahuna Theme Child description: >- Kahuna Child Theme Author: Claudia Template: kahuna Version: 1.0.0 Text Domain: kahuna-child */
My css changes were made from the theme custom css tab when clicking Appearance and then Customize option. The changes that I did, were the ones posted in a previous post in this thread.
I’ve also tried to deactivate all my plugins and I got the same the result.
Thanks
claubsParticipantI was able to fix it just adding the following code to the child theme. Just sharing the code just in case helps someone else:
add_action('wp_head', 'add_twitter_cards'); function add_twitter_cards() { if(is_single() || is_page()) { $tc_url = get_permalink(); $tc_title = get_the_title(); $tc_description = get_the_excerpt(); $tc_images = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full ); $tc_image_thumb = $tc_images[0]; if(!$tc_image_thumb) { $tc_image_thumb = 'my-url-for-page-thumbs'; } $tc_author = str_replace('@', '', get_the_author_meta('twitter')); ?> <meta name="twitter:card" value="summary" /> <meta name="twitter:site" value="@my-twitter-account" /> <meta name="twitter:title" value="<?php echo $tc_title; ?>" /> <meta name="twitter:description" value="<?php echo $tc_description; ?>" /> <meta name="twitter:url" value="<?php echo $tc_url; ?>" /> <meta name="twitter:image" value="<?php echo $tc_image_thumb; ?>" /> <?php if($tc_author) { ?> <meta name="twitter:creator" value="@<?php echo $tc_author; ?>" /> <? } } } ?>
All the best,
ClaudiaclaubsParticipantIf I active the theme, the url is correct. When activating the child theme again, the url is not correct.
I have the following active plugins:
– Akismet Anti-Spam 4.1 version
– All-in-One WP Migration 6.82 version
– Jetpack by WordPress.com 6.8.1 version
– Related Posts 5.12.84 version
– Simple Twitter Tweets 4.4 version
– SumoMe 1.30 versionbut I don’t think they are the cause of the url issue because when setting the theme, the url is correct.
The code that I added to the child theme is:
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'enqueue_load_fa' ); function enqueue_load_fa() { wp_enqueue_style( 'load-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ); }
and the additional css that I added is the following:
#header-page-title #breadcrumbs-container { display: none; } #header-page-title .entry-title { max-width: 100%; } .entry-content .twitter-tweet-rendered { max-width: 45% !important; } #commentform .comment-form-url {display:none;} #lp-text-three .lp-text-title {text-align:center;} #lp-text-three .lp-text-content .continue-reading-link{float:none; text-align:center; width:105px; margin:0 auto;}
Thanks!
claubsParticipantI have another website using another theme and I don’t have this issue (and I haven’t installed any social SEO or sharing plugin). This is not happening when tweeting youtube’s url, the thumb is automatically generated. I tried the twitter validator https://cards-dev.twitter.com/validator and I got the following error:
INFO: Page fetched successfully INFO: 5 metatags were found ERROR: No card found (Card error)
It seems that the page (website) needs to include metadata to show the image: https://twittercommunity.com/t/error-no-card-found-card-error/107179
Any help is appreciated.
Thanks,
Claudia- This reply was modified 5 years ago by claubs.
claubsParticipantHi! I haven’t edited the theme, and the only code that i added in the child theme is the following:
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'enqueue_load_fa' ); function enqueue_load_fa() { wp_enqueue_style( 'load-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ); }
Thanks,
ClaudiaclaubsParticipantHi, I’m still experiencing the same behavior. Any help is appreciated.
The same happens with the amount of replies that I have in a blog post. For example it said 4 comments instead of 4 comentarios. Same behavior for the date. It said 4 meses ago instead of 4 meses atrás. See https://claudia-badell.com/talk-at-agile-testing-days-usa-testing-as-part-of-the-team-culture/
Thanks!
ClaudiaAugust 31st, 2018 at 13:43 in reply to: How to hide title after Home icon and Blog link in header #67845claubsParticipantGreat! Thanks!
August 21st, 2018 at 12:34 in reply to: How to show published date for blog posts under featured box lists? #67505claubsParticipantHi Zed!
Thanks for your reply. It’d be great if meta information can be shown in featured boxes as an optional setting. As those lists are feed from blog posts, it’d be nice to be able to show the published date in order to give readers a sense of my publish frequency when they enter to my landing page.
Is there any mechanism to send feedback or propose ideas to improve the theme?
Have a great day.
Thanks,
Claudia.August 21st, 2018 at 12:10 in reply to: How to hide title after Home icon and Blog link in header #67504claubsParticipantThanks Zed for you reply. It is a bit redundant that information from my point of view. Is there any way to hide all right information and make the title of the blog post fix the width of the header?
Thanks!
ClaudiaclaubsParticipantHi!
I got the same behavior. I translated to ‘Ingresa tú comentario aquí…’ but it shows ‘Comment’. Other texts are shown as translated and expected, e.g. ‘Email’ is shown as ‘Tú correo electrónico’.
Thanks!
Website: claudia-badell.com
claubsParticipantHi Zed!
I removed from custom css the following
.lp-staticslider {
position: relative;
overflow: hidden;
max-height: 100vh;
background-image: url(“https://claudia-badell.com/wp-content/uploads/2018/04/Landing-2.jpg”);
height: calc(100vh – 85px);
width: 100%;
background-size: cover;
background-position: center;
}and added it as the static image for the landing page and it seems to work. Do you mean that setting?
Thanks,
ClaudiaWebsite: claudia-badell.com
claubsParticipantIn the slider. In order to see it correctly I had to add the following custom css:
.lp-staticslider {
position: relative;
overflow: hidden;
max-height: 100vh;
background-image: url(myImage);
height: calc(100vh – 85px);
width: 100%;
background-size: cover;
background-position: center;
}Thanks
- This reply was modified 6 years ago by claubs.
claubsParticipantIt worked! Thanks
April 8th, 2018 at 23:12 in reply to: How i set a tag instead of a category to list posts under a featured boxes top? #62149claubsParticipantThanks Zed! Is there any way that i can add a list of posts filtered by a tag in the landing page? (not using the featured boxes lists)
Thanks for your help,
Claudia- This reply was modified 6 years ago by claubs.
claubsParticipantI’m obtaining a different behavior. I have a page named Blog and it is set as the blog page. In the header menu the value that is shown for that page is Blog => ok but when I click Blog value in the header menu, the title which is shown in the header title is not Blog is the name of my site. All my posts are listed but the header title is not Blog, it is my site name.
How can I set the header title as Blog when clicking my blog page?
Thanks for your help!
claubsParticipantGreat! Thanks!
January 16th, 2018 at 04:21 in reply to: How to change icon when hovering a post in blogs list? #58417claubsParticipantThat worked!
Thanks for your help!
ClaudiaclaubsParticipantHi!
I haven’t figured out how to do it yet. Any clue is appreciate it!
Thanks,
ClaudiaclaubsParticipantHi,
I haven’t found yet how to hide this information. Really appreciate it any help you can provide.
Thanks!
claubsParticipantHi!
I would like not to display the info when hovering over the image. How can I hide the information displayed at the left side of the image as well as the link icon?
I haven’t found a way to do it.
Thanks!
Claudia -
AuthorPosts