Surkatim
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi
It’s already dealt with, I mistakenly entered the code to wrong hook, now the position it’s like what I want.
Thank you Tom.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom
I added the thumbnail / featured image manually to below the entry title using the hook: generate_after_entry_title.
Using that the thumbnail / featured image shows up above entry-meta. What I want is the featured image is below the entry-meta. Can I move the entry-meta above the featured image, so the position would be like the following:
Entry title
Entry-meta
Featured image
Post.Is that possible, sorry for troubling you again. Thanks again.
Surkatim.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom
About the widget I have found the way to disable the widget on mobile screen. I should firstly try to find the solutions before asking, sorry my bad.
Thank you again Tom for your helps.
Surkatim.
- This reply was modified 7 years, 2 months ago by Surkatim.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentOne more thing Tom, how to disable the widget on mobile device screen. So on mobile device screen the content can be seen entirely not being splitted with the widget.
Thanks again.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentTom
The codes work, they work, it’s now exactly what I want.
Thank you so much! You’re da best!
Surkatim
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom
Sorry to trouble you with this issue.
I have added the left sidebar
https://dubidam.id/penyebab-jerawat-di-wajah/
Thanks in advance.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom
I have used the left sidebar, and tried to lower its position, to make it lower position than the post title, but the right sidebar also get lower position too.
And using your method; the widget area only has height depends on the widget contains I put, like on the link, the content is a banner with 600px height. What I am trying to do is to make the height of widget as height as the post height and doesn’t overbear the rest of article.
Or is it better to use the left sidebar not just widget?
Thanks
Surkatim.
- This reply was modified 7 years, 2 months ago by Surkatim.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom
This is https://dubidam.id/cara-menghilangkan-jerawat-super-cepat/
Thanks
Surkatim
- This reply was modified 7 years, 2 months ago by Surkatim.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom thanks for the code, the code works and doesn’t error anymore.
But what I exactly want is the sidebar (place of widget) heigh is similar with the heigh of content.
Just like this.
Thanks again.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentI got this
error syntax error, unexpected '<'after adding the first code
And got this error
syntax error, unexpected '{'On function.php in my child theme.
- This reply was modified 7 years, 2 months ago by Surkatim.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom,
add_action( ‘widgets_init’, function() {
register_sidebar( array(
‘id’ => ‘before-post’,
‘name’ => ‘Before Posts Widget’,
) );
} );
Then you can add it to your post like this:add_action( ‘generate_before_content’, function() {
if ( is_single() && is_active_sidebar( ‘before-post’ ) {
echo ‘<div class=”floated-widget”>’;
dynamic_sidebar( ‘before-post’ );
echo ‘</div>’;
}
} );Will the above two codes enter in functions.php? Because I have installed the code snippet it’s error when adding the second code.
Forum: Themes and Templates
In reply to: [GeneratePress] How to add widget below title and left contentHi Tom
Thanks for taking the time and effort to help me.
I am appreciate it.
Sorry for the late answer, I got fever yesterday to which made me to rest on bed for whole day and night. Now I am better.
I will try your methods now. And let you know if this works.
Thank you again.