blogger

How to I set the max height of a SyntaxHighlighter code block both website-wide and for a single block of code?

余生颓废 提交于 2019-12-13 17:32:45
问题 I'd like to both locally and globally set the max height of SyntaxHighlighter code blocks. Here's an example of a global implementation that sort of works: Once you get SyntaxHighlighter implemented and working per these instructions here, just before </head> in your Blogger template, add: <style type="text/css"> .syntaxhighlighter { height: 1024px; overflow-y: auto !important; overflow-x: auto !important;} </style> (Source). This will limit code size to 1024 vertical pixels, then add a

How to display the lists of all posts on a Blogger blog?

℡╲_俬逩灬. 提交于 2019-12-13 12:21:55
问题 I have a blogger blog, but I'm a little lost with their API. I would like to know if it's possible to create a page which list all the posts of my blog. I found some answers on the Internet, but most of them doesn't work anymore :( Another question I have : it is possible to work with the db without using javascript? I may be wrong, but I think most of the widgets uses AJAX (it call some JSON to get all the info and displays them in JS). Thanks ! 回答1: To list all blogposts, you don't need to

How to use blogger video as iframe (Error 400)

天大地大妈咪最大 提交于 2019-12-13 12:15:20
问题 I have a website where I used videos hosted in blogger as iframe, the code looks like this: <iframe width = "100%" frameborder = "0" src = "https://www.blogger.com/video-play.mp4?=contentID=e6dac2f91a67e518" height = "400"> </ iframe> And it worked very well for years, but currently it displays an error message: Bad Request Error 400. But now the blogger is requiring a token to watch the videos hosted on the blogger and the link now looks like this: https://www.blogger.com/video.g?token

Add headers h1, h2, h3 (Contempo)

馋奶兔 提交于 2019-12-13 08:19:19
问题 Help I need to implement header H1, H2 and H3 correctly in blogspot theme "Contempo", issue just released a week ago, approx. March 20, 2017. (Tema contempo) By default comes H3 for the title of the post <h3 class='post-title entry-title'> <b:if cond='data:post.link or (data:post.url and data:view.url != data:post.url)'> <a expr:href='data:post.link ?: data:post.url'><data:post.title/></a> <b:else/> <data:post.title/> </b:if> </h3> And I need for better SEO to implement H1 title of article H2

Integrate a google map javascript API into blogger

社会主义新天地 提交于 2019-12-13 07:52:51
问题 I'm pulling my hair with Blogger and Google Maps API. This is what I've done : In the Template editor I added in the customize->Advanced->Add your CSS : #map-canvas { height: 100%; margin: 0px; padding: 0px } Then in the Header of the template I added just before the </head> : <script src='http://maps.googleapis.com/maps/api/js?key=AIzaSyAXprv_TXEju4E-phldszJrt2VNbxfIMkU' type='text/javascript'> </script> And Finally I tried to use the Right Bar widget HTML/Javascript and past in the HTML

Date header overlapping Post title

梦想的初衷 提交于 2019-12-13 06:07:53
问题 So I moved the date header below my post title on Blogger, and on the newest post the date keeps overlapping the header. If I use margin or padding, it affects the other date headers so I'm not quite sure what to do. The blog is here. Here is the only code I can think to be relevant (where h3 is post title): h3 { text-align: center !important; } h3 a{ color: #424242; transition: 0.5s ease; } h3 a:hover { color: #58c5d2; } .date-header { text-align: center !important; float: below; } .date

removing just “?m=1” from url using rewrite rule

余生长醉 提交于 2019-12-13 04:14:03
问题 just few day before i had migrated my blogger blog to wordpress. Now i find crawn error with many url, at the end of many url the name and value is there (?m=1) which shown as a 404 error now i want to redirect all the url additing .htaccess file example: http://www.tipsviablogging.com/blogger-tricks/facebook-disqus-tab-in-blogger.html?m=1 musy redirect to http://www.tipsviablogging.com/blogger-tricks/facebook-disqus-tab-in-blogger.html any one is having expertise in url rewrite kindly help

removing trace of hidden post on home page

假装没事ソ 提交于 2019-12-13 03:37:01
问题 I am following up on the solution in the below post: delete post from home page The solution worked. But the hidden post leave a trace on the home page, which I described in the comment section. It was recommended that I post another question, showing the code, which caused the problem. "...that happened because of the element around your last code, if you can include it inside b:if or show blog1 widget code here to suggest another way." Below is the copy of the widget "Blog1". How can I edit

Sub-Submenu not appearing on mobile device

回眸只為那壹抹淺笑 提交于 2019-12-12 22:27:53
问题 After asking this question, I was able to I was able to add sub-submenu support to my site. However, on mobile, the menus just appear as blank lines. 回答1: Replace: #menu .menus li > ul.menus { transform: translateX(100%) scale(1.0); top: 0; } with @media only screen and (min-width: 981px) { #menu .menus li > ul.menus { transform: translateX(100%) scale(1.0); top: 0; } } If worst comes to worst, you could not replace anything and just add this code: @media only screen and (max-width: 980px) {

Numbered page-navigation of Google Blogger not working on search results page

妖精的绣舞 提交于 2019-12-12 18:08:36
问题 I have added a numbered page-navigation script on my Blogger and it is working fine with all pages except the search results page (the page shown with results when I make a search for posts) -- it is showing default "previous post and newer posts" on that page. Actually I didn't know too much about JavaScript therefore I need help to modify the given JavaScript so that it works also on search result page as like Wordpress. I am happy to supply any additional needed details. Thanks in advance.