Jump to content
Sign in to follow this  
Sourena

Featured Image's Style

Recommended Posts

Sourena    2
Sourena

The featured image in a post always is on the left side. What style do I need to change to move it to the right?


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

Start by using this. You'll also have to adjust the left margin of the content. ` .post-thumb { float:right; //overrides inline style margin-right:0!important; } `

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

I added that to the 'Custom Code' but it did not work. It made the thumbnail hidden instead of moving it to the right. The thumbnail's place on the left side stays empty.


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

Let's get a link with the CSS active so we can see and possibly adjust. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

In template.postloop.php you will have to change the variables in this portion (the margins applied, compare to your current for how they changed) ` <?php if(pagelines_show_thumb( get_the_ID() )): // Thumbnails ?>

<?php endif; ?>
` Then all you need for css is `.post-thumb {float:right;}`

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

cmunns, 1. For some reason part of the code you placed here is not visible. Would you post it again? 2. Is there any way I don't touch the theme's core files? This in means every update I have to edit them instead of editing the child theme. Is there any way you add this as a part of CSS?


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

Yes it cuts off, but if you copy it, it will all transfer. Also, if you copy template.postloop.php into the base root folder you can make changes to it there without worrying and it will take precedence over the original file. You could do it with CSS if you prefer, but since this deals with inline styles. you would have to use the !important tag.

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

Thanks. I prefer CSS. That way I can have an RTL version of PlatformPro all in one CSS file. So what should I put in the CSS with the !important sign. In the code I see this line:

<div class="post-thumb" style="margin-left:-<?php echo $thumb_space;?>px">

It does not define a specific number.


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

For the thumbs... ` .clip .clip-thumb a { float:right; margin-left:10px; } ` Also, the other problem looks solved. Do you really want to change it, I assure you file is safe if in Base (hah that rhymes)

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

No. That is ok. Thanks for codes. What PHP files defines the archive page?


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

I could probably answer that if it were one of the other themes. Everything is completely different in PlatformPro. Go ahead and bump for the developers to see you. Thanks, Bryan

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

Excuse my poor English, but what does "bump for the developers to see you" mean?


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

I need to do these changes: 1. I need to remove the words "Archive for" from the "Archive for ..." in the template 2. I need to customize the archive page. It shows the title of the regular categories but it does not show the taxonomies I have specified for certain custom post types. Currently it only says Archive for "". There is nothing between the quotation marks. 3. I need to remove the date and other stuff for certain taxonomies' archive pages. Should I change several pages in the theme's core files to do this?


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

You should be able to accomplish all of this within the library.templates.php file look for this function function pagelines_do_posts_info(){...

Share this post


Link to post
Share on other sites
Sourena    2
Sourena

Where is that file located?


alefba.us

Web Development & Design for Right-to-Left languages

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×