blogger

Create a post in Blogger with Google Apps Script

a 夏天 提交于 2019-12-20 07:06:15
问题 So far I haven't found a good code to create posts in Blogger with Google Script. In the API Console I got the following credentials: Client ID Client Secret API key Also, libraries were added to the Google Script: OAuth2 library → MswhXl8fVhTFUH_Q3UOJbXvxhMjh3Sh48 Blogger library → M2CuWgtxF1cPLI9mdRG5_9sh00DPSBbB3 I tried some codes, and this is the current one: function create_post_blog_2() { //<script src="https://apis.google.com/js/api.js"></script> //<script> /** * Sample JavaScript

Next and Prev Buttons for Blogger Theme

陌路散爱 提交于 2019-12-20 03:26:12
问题 This might be a take a lot of time and might be a tough question to answer, but please help. I have a blog http://rawmangaread.blogspot.in/ It is a blog for reading Japanese Manga. The theme of this blog was actually published not fully developed.I downloaded it and applied it and even though I have almost completed the coding at necessary places, some problems are left out. One of them is Next and Prev button. For temporary uses I have put data:newerPageUrl and data:olderPageUrl The above

Thumbnail images on home page (grid) now appearing blurry. How to correct that?

人走茶凉 提交于 2019-12-20 03:15:03
问题 I don't know if this looks silly but since morning I have been unable to correct this error that has suddenly crept up on my blog site www.candidopinions.in I have a grid view template in which the featured image in a blogpost appears on the home page as resized thumbnails (8 images on each home page). This blog and the template that I am using have been live since 1.5 years and until last night, the thumbnail images were appearing sharp. I don't know what happened but since morning the

Disabling ieretrofit.js on Blogger

做~自己de王妃 提交于 2019-12-19 11:57:41
问题 this script is giving me trouble in IE 9. From what I heard it was used to get rounded corners working on old IE versions. Now I don't need it anymore... And worse, it is forcing me to keep a <META content=IE=EmulateIE7 http-equiv=X-UA-Compatible> tag or the scripts messes my opaque windows. It seems to be included automatically with the <b:include data='blog' name='all-head-content'/> tag. Anyone knows how to prevent it from being loaded? 回答1: I've finally figured this one out. By replacing

How to increase character lengh in blogger snippet instead of using limited length, 'data:post.snippet'?

六眼飞鱼酱① 提交于 2019-12-19 04:12:24
问题 I'm currently using 'data:post.snippet' for blogger mobile snippet. <div class='post-body' style='color:black;'> <b:if cond='data:post.snippet'><data:post.snippet/></b:if> </div> But its character length(140) is too low, and it doesn't give a line break between the headings and paragraphs. When there's a heading at the very start line break is necessary. Can someone please suggest me a javascript code to replace above code to overcome those two issues. 回答1: You can utilize the data:post

Use 301 Redirect In Google Blogger/Blogspot

故事扮演 提交于 2019-12-18 04:55:07
问题 I have a Google Blogger blog where I blog. Sometime ago, I posted a post but now after getting new data, I updated that post and I got new URL of that post. But I have a lot of backlinks to that old URL and now when they are htiing then they are getting 404 page that is a bad SEO. Now I want to use 301 Redirect to redirect old URL to new URL. For this purpose, I know that we have to use .htaccess and add Redirect 301 OLD_POST_URL NEW_POST_URL but Google Blogger doesn't offer to edit .htaccess

How to show <div> tag literally in <code>/<pre> tag?

烈酒焚心 提交于 2019-12-17 02:29:34
问题 I'm using <code> tag inside of a <pre> tag to show code on my blogger blog. Unfortunately it doesn't work with HTML tags. Is there any way to show " <div> " inside of <pre> or <code> tag without actually interpreting it as HTML? This is what I do right now: <pre> <code> .class { color:red; } // I would like HTML code inside this </code> </pre> Which works ok for everything except HTML. Any idea how to achieve this? Thanks. 回答1: Unfortunately it doesn't work with HTML tags. <code> means "This

Blogger: Added Javascript but no result came out

吃可爱长大的小学妹 提交于 2019-12-14 04:14:20
问题 First I edited my Blogger Template HTML. I added the following script in the footer-1 section: <script type="text/javascript"> //<![CDATA[ var copyTextareaBtn = document.querySelector('.js-textareacopybtn'); copyTextareaBtn.addEventListener('click', function(event) { var copyTextarea = document.querySelector('.js-copytextarea'); copyTextarea.select(); }); var copyTextareaBtnb = document.querySelector('.js-textareacopybtnb'); copyTextareaBtnb.addEventListener('click', function(event) { var

open graph debugger tool errors inferred property

这一生的挚爱 提交于 2019-12-14 02:33:14
问题 the past few days I've been working to get a facebook comment box installed on my blog that I've set up with open graph tags so that my blog can be liked as a facebook page. From what I can see on the page, all seems to be functioning normally, but when I run my blog address through the debugger, I get the following errors. Here is the link to my site: www.mommysnark.com And here are the errors that the debugging tool gives me: A like button warning that should be fixed: og:title is missing.

Use blogger post labels as meta data keywords

断了今生、忘了曾经 提交于 2019-12-14 01:26:43
问题 I am starting to make blogger templates from scratch and i am making a research about best SEO metadata for each post. I think the most logical way to use meta name=keywords is to use post labels as keywords but i don't understand why i cant retrieve the data and display it in the meta section as i can with the data from description. for expample: <b:if cond='data:blog.pageType != "error_page"'> <meta expr:content='data:blog.metaDescription' name='description'/> </b:if> puts the data comming