First thought was to include the link tag in my theme. If a theme can be used: which content type do I have to use?
If a theme cannot be used: where do I put the link tag?
Used it before, sorry, didn't recall #facepalm
How to do it:
Place the code manually in the resource section of your Xpage/Custom control as you are not be able to compute the href value:
<xp:this.resources>
<xp:linkResource rel="alternate" type="application/rss+xml"
title="Oliver Busse - OSnippets"
href="/#{javascript:config.getConfig().getItemValueString('pathSnippets')}/rss.xsp">
</xp:linkResource>
</xp:this.resources>
Related
How to remove script tag shown bellow from the wordpress page using php or javascript.
<script type="application/ld+json">{"#context":"http:\/\/schema.org","#type":"BlogPosting","mainEntityOfPage":"http:\/\/domain.com\/190415-%d8%a5%d8%b0%d8%a7-%d9%83%d9%86%d8%aa-%d8%aa%d9%86%d9%88%d9%8a-%d8%b2%d9%8a%d8%a7%d8%b1%d8%a9-%d8%a3%d9%88%d8%b1%d9%88%d8%a8%d8%a7-%d9%87%d8%b0%d8%a7-%d8%a7%d9%84%d8%b5%d9%8a%d9%81%d8%8c-%d8%ad%d8%b3%d8%a7%d8%a8%d8%a7%d8%aa-%d8%a7%d9%86%d8%b3%d8%aa%d9%82%d8%b1%d8%a7%d9%85-%d9%87%d8%b0%d9%87-%d8%b3%d8%aa%d9%83%d9%88%d9%86-%d8%af%d9%84%d9%8a%d9%84%d9%83\/","publisher":{"#type":"Organization","name":"\u0634\u0628\u0643\u0629 \u0623\u0628\u0648 \u0646\u0648\u0627\u0641","logo":{"#type":"ImageObject","url":"http:\/\/domain.com\/wp-content\/uploads\/2016\/02\/favicon.png","height":32,"width":32}},"headline":"\u0625\u0630\u0627 \u0643\u0646\u062a \u062a\u0646\u0648\u064a \u0632\u064a\u0627\u0631\u0629 \u0623\u0648\u0631\u0648\u0628\u0627 \u060c \u062d\u0633\u0627\u0628\u0627\u062a \u0627\u0646\u0633\u062a\u0642\u0631\u0627\u0645 \u0633\u062a\u0643\u0648\u0646 \u062f\u0644\u064a\u0644\u0643","datePublished":"2015-04-20T19:14:41+00:00","dateModified":"2016-02-01T11:12:42+00:00","author":{"#type":"Person","name":"\u0645\u062d\u0631\u0631\u0661"},"image":{"#type":"ImageObject","url":"http:\/\/domain.com\/wp-content\/uploads\/2015\/04\/Europ.jpg","width":950,"height":534}}</script>
From Head tag.
How can do that
Depends on where the tag gets injected. Check you header.php file in Theme directory, if it's not the one, try disabling all plugins one by one to see which one adds that tag.
I am just about to launch an eCommerce site using WordPress and WooCommerce and trying to tidy up the source code and strip out all the WordPress header lines.
The site is pure eCommerce with a blog for users and search engines, I believe the functions below are for a pure blog website.
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<link rel="pingback" href="http://www.domain.co.uk/xmlrpc.php"/>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.domain.co.uk/xmlrpc.php?rsd"/>
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.domain.co.uk/wp-includes/wlwmanifest.xml"/>
Does anyone know what is required from the above for WordPress to function? And how we can remove these from WordPress, if we can?
Thanks Kindly.
J
You can safely remove all of these from your header.php file. They aren't required for the site to function.
More info: In HTML5, the "profile" attribute was dropped.
The others are purely optional.
For de-registering the bottom two, you'll need to add some new lines to your functions.php:
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
These functions, from the wp_head action hook, can be viewed in wp-includes/general-template.php, starting on line 2190.
From this file, rsd_link "display(s) the link to the Really Simple Discovery service endpoint."
The wlmanifest_link "display(s) the link to the Windows Live Writer manifest file." If you don't use Windows Live Writer, there's no need for this.
I'm Trying to display a RSS link to a blog post in Orchard 1.5 (should be simple right)
I feel I must be missing something here :
The documentation here seems out of date? I can't find any instance of the Html.RegisterFeed or Html.FeedLink in my current Orchard 1.5.1 codebase.
I can see the <link /> tags have been inserted into the Header section of the page.
<link rel="alternate" type="application/rss+xml" title="News" href="/Riders/rss?containerid=85" shape-id="334">
And I'm looking at the View in Orchard.Core/Feeds/Views/Feeds.cshtml and I can see
#Model.FeedManager.GetRegisteredLinks(Html)
But I don't know how to get this to render on my page, ideally in First aside section.
Could someone point me in the right direction.
For instance
I want to put something like
RSS feed
and it would render
How do you find what theme someone is using, for example what theme does the official wordpress blog use?
Here are the links :
http://en.blog.wordpress.com
http://en.blog.wordpress.com/2006/08/17/forgotten-birthday/
The theme being used is called h4.
You can find this out by looking at where the style sheet is located. The style sheet code from this page is
<link rel="stylesheet" type="text/css" href="http://s2.wp.com/wp-content/themes/h4/style.css?m=1345845332g&5" media="screen" />
so you can see that the theme is stored in wp-content/themes/h4.
I would assume that h4 is a custom theme and wont be available publicly though.
Edit
This website is also useful for finding a wordpress theme as you just stick in the url and it pulls all the meta information (if there is any) from the CSS for you.
http://whatwpthemeisthat.com/
I want to add a meta keyword tag which have to come with every pages within my drupal website. How to do that ?
It's too easy just use the meta tag module .
And for drupal6 i found this: Meta tags Node Type
Welcome
It might need a bit of tweaking but I built a module that does this.
https://github.com/SpaceBeers/Drupal-7-Meta-Tags-Module
It also lets you set a site wide default title and description which can be overridden for each node. You can select which content types this appears on.
It'd be nice to get some feed back on it.
Just add The code given below at the top of your template.php file (Custom).
drupal_set_html_head('<meta name="keywords" content="CustomKeyword" />');
Done.