Hi @mustafa-dertli,
Are you using a child theme? Make sure you are adding the code into a child theme. Which php file are you adding it in? Have you tried the other method of adding a shortcode to your pages?
Hannah
Hi I have added a single php file and the code works.
But it looks to the right.
I want you to see it next to the category and comment tab just below the title
I’m not seeing it. Did you remove it?
Hannah
Try adding this CSS to Theme Option>Advanced Settings, and let me know if it works for you:
@media (min-width: 992px) {
.post-ratings {
position: relative;
left: 20px;
}
}
-Kevin
Hey,
Instead of adding to the single.php file
Use the templates/entry-meta-subhead.php file.
Then add your code between lines 9 and 10
Make sure to use a child theme and make sure your child theme has a templates folder that you are adding the entry-meta-subhead.php file to.
Ben
Hello now, but I want to be next to the comment button.
Hey,
Try adding this to your custom css box in Theme Options > Advanced Settings:
@media (min-width: 992px) {
.post-ratings {
width: 50%;
float: right;
padding-left: 10px;
}
.subhead {
width: 50%;
}
}
Hope that helps!
Hannah
Hello, now it’s done.
There are two problems on the blog page https://beydagiyapi.com/blog/
1. I do not want your ratings to appear.
2. The page numbering on the blog page is not working
1. You can use this css:
.postlist article .post-ratings {
display: none;
}
Or you can edit the code you added to check for single. Like:
<?php
if ( is_single() && function_exists ('the_ratings') ) {
the_ratings ();
}
?>
2. I’m seeing page 2 appear? Have you tried clearing your cache?
Hello Thank you.
the first and second problem are resolved.