how do you hide an image in Tumblr's permalink page? - css

I want to have my own thumbnails for video posts on my main tumblr page....and show the video only in the permalink page with out the thumbnail.
here's an example site of what I'm trying to do:
http://devour.com/ (not tumblr but same idea)
I figured the best method is to post the thumbnail as a photo post, with the video embedded. Then hide the image in the permalink page.
so my question is...how do I hide the image in the permalink page?

Rather than hiding the image on the permalink page, use the theme operators {block:IndexPage} and {block:PermalinkPage} to only include the content that you need.
{block:Posts}
{block:Photo}
<!-- On the Index, show only the Image / Cover -->
{block:IndexPage}
<img src="{PhotoURL-500}">
{/block:IndexPage}
<!-- On the Permalink, show only the Caption, which contains the video -->
{block:PermalinkPage}
{block:Caption}
{Caption}
{/block:Caption}
{/block:PermalinkPage}
{/block:Photo}
{/block:Posts}
Reference: http://www.tumblr.com/docs/en/custom_themes#basic_variables

Related

Unsure on how to show the featured page as my homepage

I am creating a Ghost Theme and I want to have my index.hbs show the featured post as the page. I have tried a range of things but nothing seems to work:
index.hbs
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- The main content area --}}
<main>
{{#foreach posts}}
{{#has featured="true"}}
{{post}}
{{/has}}
{{/foreach}}
</main>
I think the best way to achieve having a featured post as the main page would be to use Dynamic Routing and route / to the post or page with featured flag. Alternatively, you could fetch and display the featured post using the {{get}} query described here.

Creating a post with guttenberg content using the WP-REST-API

I am using the wp rest api for adding posts to my site from another app. Therefore I use POST /wp-json/wp/v2/seminar where seminar is my custom post type. In the post data I set content to some text.
The Problem is that Wordpress creates a block with the tinyMce editor instead of using the default guttenberg paragraph block (see images below).
What is created:
Image of Tinymce
What I want to be created:
Image of paragraph editor
Does someone know a way to make wordpress creating the paragraph insted of the tinymce block?
Try to make content like this
<!-- wp:paragraph -->
<p>my content text</p>
<!-- /wp:paragraph -->

How can i get post's gallery page url from excerpt? (Wordpress)

i want to get post's gallery page (attachments.php) url from blog excerpt.
i tried to explain with this
image
and that is my codes
<div style="position:absolute; top:0; left:0;">
Galeriye Git
</div>
so how can do that?

images donot display in my wordpress posts

i try this code to display image in my post in wordpress but image doesnot show in my post
<article class="media">
<h2>About the venue</h2>
<img class="pull-left" src="images/hotels/contempo.jpg" alt="Hotel Contempo"/>
<p>All CAC speaking events located at 309 1st Avenue, in Downtown Seattle..</p>
</article>
is this code a proper way to display images in wordpress ??...i donot want upload image method
if not correct ..how can i write code to display this image?
If you want to show the static images you need to give proper url to the images.
src="/wp-content/themes/your-theme-name/images/hotels/contempo.jpg"

Remove content after <!--more--> tag

I'm trying to show at the category page only the content of the post that is before the <!--more--> tag. I'm using the latest Wordpress version.
In other words the structure will go like this
Content
<!--more-->
Content I want to be removed and only shown if the single post is displayed.
I've already got rid of the "Read More" link, and I've already tryed to use CSS and display:none; but none of those works fine
The code generated by wordpress is the following
<h2 class="entry-title">Post Name</h2>
<div id="chan" class="blanco">Content Shown</div>
<p><span id="more-50"></span>Post description.</p>
At the index.php I've managed to make it work since it shows the link and not the content itself, however in the page.php doesn't work.
Thank you very much in advance!
<?php the_content(); ?> will output the content, trimmed to just before the <!-- more --> tag, if the tag is used.
From the codex:
If the quicktag <!--more--> is used in a post to designate the "cut-off" point for the post to be excerpted, the_content() tag will only show the excerpt up to the <!--more--> quicktag point on non-single/non-permalink post pages.

Resources