Spam/Stray Link in WordPress - wordpress

I have the following link showing up in my wordpress site:
swinging couple erotic story
When I "view source" it is showing up here:
<body class="home page page-id-11 page-template-default cssstyle-style1 font-family-trebuchet font-size-is-large col12">
<div id="rt-header">
<div class="rt-container">
<div class="rt-grid-12 rt-alpha rt-omega">
<div id="text-2" class="widget widget_text rt-block"> <div class="textwidget"><img src="http://www.mmi-doc.org/wp-content/uploads/2013/03/Mission-Ministry-banner3.jpg"> swinging couple erotic story </div>
</div><div id="text-5" class="widget widget_text rt-block"> <div class="textwidget">.</div>
ANY suggestions where I can find this in the WORPRESS INC files? OR other location to remove it?
Thank You

This looks like you may have a hacked file. There are plugins that scan your directory to see if there are out of place files or files that have been messed with. Take a look at this one, https://wordpress.org/plugins/exploit-scanner/
Take a look at Appearance > Widgets to see if it created that widget that you could delete as well.

Related

Input type - Contact form 7

I have a newsletter sign up form on a site and I can't seem to figure out why the email section input type is set to 'tel' meaning on mobile, users get only access to the numerical keypad and not the actual keyboard. I am quite new to this, which is why I am after some help.
It is the homepage to, the subscribe form down the bottom: https://www.australianwildlife.org/
Can someone please advise how I might be able to change it to input ="email"? I have attached a screenshot where I can see it is set to input="tel"
Here is the contact form 7 code:
<div class="form-content">
<div class="subscribe_form">
<div class="row">
<div class="col-md-4 col-lg-3">
<div class="form-group mb-20">
[awctext* first-name label "First name"]
</div>
</div>
<div class="col-md-4 col-lg-3">
<div class="form-group mb-20">
[awctext* last-name label "Last name"]
</div>
</div>
<div class="col-md-4 col-lg-3">
<div class="form-group mb-20">
[awcemail* email label "Email"]
</div>
</div>
.col-md
[submit class:bttn class:secondary-alt1-bg class:btn class:radius-none class:white-color class:submit-btn class:ripple "Subscribe"]
Site
I think this is part of your theme, not so much part of contact form 7. The shortcode starts with awc, which should stand for Australian Wildlife Conservancy. Somewhere in the theme’s files these shortcodes are added. The bug should be in there.
You can start searching for awcemail on your file system in both the wp-content/themes folder and wp-content/plugins folder (since it might have been implemented in a plugin). If you cannot find it, try searching for the add_shortcode and see whether you can find out whether awcemail is a shortcode and where it is added. You can also do a file search for the following:
type="tel"
type='tel'
If that doesn't work you should found out how the code for your contact form is actually parsed. If you know which file(s) are responsible for that you might find in them where the [awcemail part is converted to the actual html.
If that doesn't work, get in contact with the developer, or post (parts of) the code in a github, for example, so we can examine it. I'm sure that if you post all the code, we are able to help you fix this bug, but that is up to you, of course.

Woocommerce Shop Page Product Display Bug

When I go to my shop page products are displayed in a very strange way : Product details take lot of place. I tried to understand what have changed since yesterday and I notice (inspecting element via Chrome) that the html code before was :
<ul id=product ....>
<li class=product_item ...>
<div class=image container>...</div>
<div class=clearfix>...</div>
<div class=product details>...</div>
</il>
</ul>
and now I have this following code (and it destroy my product list display) :
<ul id=product ....>
<div class=t_singleproduct_cont>
<li class=product_item ...>
<div class=image container>...</div>
</il>
</div>
<div class=clearfix>...</div>
<div class=product details>...</div>
</ul>
As you can see the product details is outside the li tag and so my shop page is such a mess.
I tried to identify where this piece of code was coming from and I found that it was inside the content-product.php file but I can't see the line with "t_singleproduct_cont" div.
If you could help to deal with this problem I'll be very grateful !
Thank you very much
#Tayfun Akaltun. Have you installed plugin called enhanced e-commerce plugin for google analytics?

When I'm logged in I can see elements that disappear when I'm not logged in as Admin

I changed some sections in my Wordpress website and also added some.
The really strange thing is that when I am logged in and I see the website in the logged in view I can see the sections but when I'm not logged in I can't see that, every change at the website is not visible.
I empty the cache and tried to change some texts and every change was visible.
The plug-ins installed are:
Akismet
Contact Form 7
iThemes Security
Roots Rewrites
Soil
W3 Total Cache
WordPress SEO
WPML Media
WPML Multilingual CMS
WPML String Translation
I can't understand how resolve this problem :(
With these informations, we can only say that you must look at Wordpress Codex:
http://codex.wordpress.org/Function_Reference/is_user_logged_in
Maybe you accidentally hid some sections for not logged in users. If not, please be more spesific about your question.
Sorry, I can't see the "user logged in" function.
the code that I add is this
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
<hr/>
<h2 style="text-align: center;"><?php _e('Charter of services','fratesole'); ?><br/>
<small><?php _e('Private Hospital','fratesole'); ?></small></h2>
<p style="text-align: center;"><a class=" btn btn-primary" href="#" target="_blank" ><?php _e("Download Pdf","fratesole"); ?></a></p>
<hr class="in-btn"/>
</div>
</div>
</div>
</section>

drupal 7: custom design theme a block created with the Views module

i create block with views module for Print Promoted to front page, this worked and i see result in my front page. this views worked with field and i print title, thumbs, content. now i need to custom this theme views for show in jquery content slider.
i click in advanced->theme->information i see this:
field content revision: views-view-field.tpl.php, views-view-field--title.tpl.php, views-view-field--frontpage.tpl.php, views-view-field--frontpage--title.tpl.php, views-view-field--block.tpl.php, views-view-field--block--title.tpl.php, views-view-field--frontpage--block.tpl.php, views-view-field--frontpage--block--title.tpl.php, views-view-field--block-1.tpl.php, views-view-field--block-1--title.tpl.php, views-view-field--frontpage--block-1.tpl.php, views-view-field--frontpage--block-1--title.tpl.php
But i don't find any .tpl.php theme files for edit theme design using html and css. how to create custom design theme for print my result with this format:
<div id="content">
<ul>
<li>
<div class="title">title1</div>
<div class="thumbs"><img 1 ......></div>
<div class="content">content1</div>
</li>
<li>
<div class="title">title2</div>
<div class="thumbs"><img 2 ......></div>
<div class="content">content2</div>
</li>
</ul>
</div>
I think the Views 2 theming guide has already explained everything clearly. Just follow the steps there and it only takes just minutes.

Magnolia breadcrumb

I am new to Magnolia and am trying to configure the breadcrumb for a site. I took a look at the documentation, but it is very limited.
<div id="breadcrumb">
<h5>${i18n['nav.selected']}</h5>
<ol>
[#list model.breadcrumb as item]
[#if item_has_next]
<li>${item.navigationTitle}</li>
[#else]
<li><strong>${item.navigationTitle}</strong></li>
[/#if]
[/#list]
</ol>
</div>
I found the script above which renders the breadcrumb, but struggle with the configuration. Can you give me an example (with picture) if possible?
Thank you
very much
I'm not sure you need to configure the breadcrumb for your site.
If you use the STK (Standard Templating Kit) pages templates, like stkArticle, stkSection, etc, then you get the bread crumb trail for free.
What I've done is to extend STK templates then override the areas/main/templateScript value to point at my own freemarker script. The script then looks like this:
<div id="main" role="main">
[#cms.area name="breadcrumb" content=content/]
[#cms.area name="intro" content=content/]
[#cms.area name="opener"/]
[#cms.area name="content"/]
<!-- ADD YOUR SPECIFIC CONTENT HERE -->
</div>
Hope this helps.

Resources