How to add Page Attributes to Posts
-
Hi, Nobita, How have you been?
Of late, I tried to create a Post with identical Page attributes, but failed, because there are no Page Attributes on Posts. Can you give me a recipe for creating a Post that looks very clean and simple, exactly the same as a reular Page , except the Post carries only one particular article? I don’t want the Category, Search bars on the side, nor the author and posting time information, etc.–just plain and simple.
Many thanks,
Ken
-
Hi wccesq
Raindrops theme is, because it is a good tool, I have the effort for everyone 🙂
You needs no posted on, no posted in, and 1column post ?
Please add functions.php first line
<?phpbefore belowAll new post will be change 1col no posted on, no posted in
( do not remove edit post textarea <!–[raindrops…]–> )<?php function raindrops_posted_on() { return; } function raindrops_posted_in() { return; } add_filter( 'default_content', 'my_default_content',10); function my_default_content( $content ) { return $content.'<!--[raindrops color_type="dark" col="1"]-->'; } ?>dark is color type another value light, minimal, w3standard.
By the way,
It is submitted to review the Raindrops 1.237, in this version, in all posts, custom style editor meta box appears.
With this, in each post, display non-display of items posted in, posted on the user will be able to modify.
and, for each post, custom header image, you will be able to switch to those of taste.
Thank you.
Hi Nobita,
I just came back from a trip and copied and pasted your code to my child theme-php function. However, after updating, I saw no changes whatsoever. In other words, there is no “Page Attributes” for me to select “Full width without sidebars”. Therefore, there are still search sidebar on the left and category sidebar on the right, plus the information about the author and posting time. To make sure that I copied your instruction correctly. I enclosed the exact code I put on my child theme for your reference as below.
If you can find a solution to achieve what I want: a clean, simple post that just looks a regular webpage, without any sidebar, comments, or posting information.
Again, with many many thanks for your continuing support.
<?php $raindrops_base_font_size = 16; function raindrops_posted_on() { return; } function raindrops_posted_in() { return; } add_filter( 'default_content', 'my_default_content',10); function my_default_content( $content ) { return $content.'<!--[raindrops color_type="dark" col="1"]-->'; } ?>Hi wccesq
Your paste code is correct.
Just pasted this code, sidebar, also appears when looking at the blog.
One other work is required.
Create a new post, Please check the post
Hi, Nobiuta,
Thanks for your reply.
I retried with a new poat and the information about posting time and author is removed. But, there are still Caterhories and Search sidebars, and “Hello World” at the bottom. How can I remove all of them so that a Post looks just like a page, clean and free from any sidebars.
Sorry for the trouble. Please help. Thanks,
KenWhen new post
entry content textarea inserted below ?
<!--[raindrops color_type="dark" col="1"]-->if removing above code then not showing 1column.
if contain above code at entry content textarea then Single Post shows 1column.
Hi, Nobita,
You are wonderful! It finally worked.
The only question I have is: The default Post “Hello World” is still at the lower left. Is that the way it should be? Or that “Hello World” should be removed as well?
Please advise. Many many thanks, again,
Ken
The default Post “Hello World”
maybe You can remove the default post.
Hi, Nobita,
If possible, I would like to remove “Hello World” at the Bottom. However, it does not show up in Text or Visual. Therefore, I can’t locate it so that I can remove it from my Post.
Can you help? Many thanks,
Ken
I can’t locate it so that I can remove it from my Post.
Why, it does not know what can not be deleted, please tell me again the URL of your site WEB
Thank you.
Hi, Nobita,
Thank you very much for your prompt reply.
Here is my link to the Post (not published yet):http://www.rowlandassociation.com/?p=1459&preview=true
There is “Hello World” at the bottom that cannot be removed, as discussedearlier.
If you can, please help. Many thanks,
Ken
Hello World is not exists
but html source has been interrupted in the middle.
html source end
<div id="wpfront-scroll-top-container"><img src="http://www.rowlandassociation.com/wp-content/plugins/wpfront-scroll-top/images/icons/54.png" alt="" /></div> <script type="text/javascript">if(typeof wpfront_scroll_top == "function") wpfront_scroll_top({"scroll_offset":100,"button_width":0,"button_height":0,"button_opacity":0.8,"button_fade_duration":200,"scroll_duration":400,"location":1,"marginX":20,"marginY":20,"hide_iframe":false,"auto_hide":false,"auto_hide_after":2});</script>not exists
</body>,</html>Hi, Nobita,
Thanks for your most patient help. But, to be sure that get your instructions right, I combined the code as follows for your approval, before changing. I just added the additional code to the bottom of the earlier code. Am I right? Please advise and many thanks,
<?php $raindrops_base_font_size = 16; function raindrops_posted_on() { return; } function raindrops_posted_in() { return; } add_filter( 'default_content', 'my_default_content',10); function my_default_content( $content ) { return $content.'<!--[raindrops color_type="dark" col="1"]-->'; } ?> <div id="wpfront-scroll-top-container"><img src="http://www.rowlandassociation.com/wp-content/plugins/wpfront-scroll-top/images/icons/54.png" alt="" /></div> <script type="text/javascript">if(typeof wpfront_scroll_top == "function") wpfront_scroll_top({"scroll_offset":100,"button_width":0,"button_height":0,"button_opacity":0.8,"button_fade_duration":200,"scroll_duration":400,"location":1,"marginX":20,"marginY":20,"hide_iframe":false,"auto_hide":false,"auto_hide_after":2});</script>Hi wccesq
<?php $raindrops_base_font_size = 16; function raindrops_posted_on() { return; } function raindrops_posted_in() { return; } add_filter( 'default_content', 'my_default_content',10); function my_default_content( $content ) { return $content.'<!--[raindrops color_type="dark" col="1"]-->'; } ?>above code must write functions.php first.
if write last then not work.
Current Raindrops can change font size at theme customizer
I recommend remove below code.
$raindrops_base_font_size = 16;thank you.
Hi, Nobita,
Thank you very much for your help.
I finally managed to remove “Hello World” from the bottom of my Post. I went to Posts and deleted the default “Hello World” Post. Then, no more “Hello World” shows up at the bottom of my new Post.
Again, many many thanks, as always,
PS: As instructed, I removed the
$raindrops_base_font_size = 16;What a wonderful feature to have. Great!!!
The topic ‘How to add Page Attributes to Posts’ is closed to new replies.
